|
-
Aug 29th, 2006, 03:12 AM
#1
Thread Starter
Junior Member
[02/03] working directory...............
hi there
is there a way to get the the path of the working directory where the vb.net program is run, as a string?
thanking you.
-
Aug 29th, 2006, 03:21 AM
#2
Re: [02/03] working directory...............
what do you mean by "working directory"?
-
Aug 29th, 2006, 03:23 AM
#3
Re: [02/03] working directory...............
The working directory and the directory where the program was run from are not necessarily the same thing. You get the path of the folder containing the current app's executable using Application.StartupPath and the path of the executable itself using Application.ExecutablePath. Neither of those properties will change over the course of a session. The working directory is found using Environment.CurrentDirectory. It may be changed, either explicitly by your code, by the user when using a FileDialog or various other means.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|