home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!news.edu.tw!news!Uz.nthu.edu.tw!yfwu
- From: yfwu@Uz.nthu.edu.tw (EE U780935)
- Subject: Re: Commandline in VB?
- Message-ID: <1992Nov5.070238.14727%yfwu@Uz.nthu.edu.tw>
- Organization: National Tsing Hua University (HsinChu)
- References: <1992Nov2.184430.211@csghsg5a.bitnet>
- Date: Thu, 5 Nov 1992 07:02:38 GMT
- Lines: 22
-
- : Is there a way to find out from what path
- : my program is starting and what's the path
- : windows is installed.
- After your program starts, the statement CurDir$ spicfies the directory of
- your program.
- Use API function GetWindowsDirectory to get the directory of MS-Windows.
-
- : And another question is how to pass parameters
- : to a VB program (or better how to read them in
- : the program)?
- You can add parameters after the VB file name. For example:
- VB_Prog /L:10 /B:25
-
- In the program VB_Prog.EXE, you can get the parameters by using the statement
- Command$. In this example, Command$ = "/L:10 /B:25"
- --
- ===============================================================================
- Yuh-Fuu Wu National Tsing-Hua University
- e-mail: yfwu@uz.nthu.edu.tw Dept. of Electric Engineering
- yfwu@well.ee.nthu.edu.tw Hsin-Chu City, 300
- Like MS Visual Basic most! Taiwan, ROC
- ===============================================================================
-