home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3332 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1017 b   |  35 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!demos!news-server
  3. From:  Fyodor@msoft.msk.su (Fyodor Zubanov)
  4. Subject: Re: Commandline in VB?
  5. Date: Mon, 9 Nov 1992 12:47:23 GMT
  6. Reply-To: Fyodor@msoft.msk.su
  7. Organization: Microsoft Moscow
  8. Sender: news-server@kremvax.hq.demos.su
  9. Message-ID: <AARtb_gGP2@msoft.msk.su>
  10. Lines: 23
  11.  
  12. >   Is there a way to find out from what path
  13. >   my program is starting and what's the path
  14. >   windows is installed.
  15. >
  16. Right after your program starts use CurDir$ function,
  17. which returns the current path.
  18. To define windows location you can use API functions
  19. GetWindowsDirectory and GetSystemDirectory
  20.  
  21.  
  22. >   And another question is how to pass parameters
  23. >   to a VB program (or better how to read them in
  24. >   the program)?
  25.  
  26. Use the Command$ function
  27.  
  28. Fyodor
  29. -- 
  30. =================================================================
  31.         Fyodor Zubanov          fyodor@msoft.msk.su
  32.         Moscow, Russia
  33. =================================================================
  34.  
  35.