home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3232 < prev    next >
Encoding:
Text File  |  1992-11-04  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. 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
  3. From: yfwu@Uz.nthu.edu.tw (EE U780935)
  4. Subject: Re: Commandline in VB?
  5. Message-ID: <1992Nov5.070238.14727%yfwu@Uz.nthu.edu.tw>
  6. Organization: National Tsing Hua University (HsinChu)
  7. References: <1992Nov2.184430.211@csghsg5a.bitnet>
  8. Date: Thu, 5 Nov 1992 07:02:38 GMT
  9. Lines: 22
  10.  
  11. : Is there a way to find out from what path
  12. : my program is starting and what's the path
  13. : windows is installed.
  14. After your program starts, the statement CurDir$ spicfies the directory of
  15. your program.
  16. Use API function GetWindowsDirectory to get the directory of MS-Windows.
  17.  
  18. : And another question is how to pass parameters
  19. : to a VB program (or better how to read them in
  20. : the program)?
  21. You can add parameters after the VB file name. For example:
  22. VB_Prog /L:10 /B:25
  23.  
  24. In the program VB_Prog.EXE, you can get the parameters by using the statement
  25. Command$. In this example, Command$ = "/L:10 /B:25"
  26. --
  27. ===============================================================================
  28.  Yuh-Fuu Wu                                      National Tsing-Hua University
  29.  e-mail: yfwu@uz.nthu.edu.tw                     Dept. of Electric Engineering
  30.          yfwu@well.ee.nthu.edu.tw                Hsin-Chu City, 300
  31.  Like MS Visual Basic most!                      Taiwan, ROC
  32. ===============================================================================
  33.