home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!demos!news-server
- From: Fyodor@msoft.msk.su (Fyodor Zubanov)
- Subject: Re: Commandline in VB?
- Date: Mon, 9 Nov 1992 12:47:23 GMT
- Reply-To: Fyodor@msoft.msk.su
- Organization: Microsoft Moscow
- Sender: news-server@kremvax.hq.demos.su
- Message-ID: <AARtb_gGP2@msoft.msk.su>
- Lines: 23
-
- > Is there a way to find out from what path
- > my program is starting and what's the path
- > windows is installed.
- >
- Right after your program starts use CurDir$ function,
- which returns the current path.
- To define windows location you can use API functions
- GetWindowsDirectory and GetSystemDirectory
-
-
- > And another question is how to pass parameters
- > to a VB program (or better how to read them in
- > the program)?
-
- Use the Command$ function
-
- Fyodor
- --
- =================================================================
- Fyodor Zubanov fyodor@msoft.msk.su
- Moscow, Russia
- =================================================================
-
-