G
Guest
Hi,
For info I am using VS 2005 beta 2
I have a Console App and I want it to do the equivalent of a Change
Directory (CD) command that you would do in normal command line mode as
follows:
I am using the System.IO.Directory namespace to query where I am and look
for available subdirectories etc. This works fine but I cannot find anything
in that namespace that will physically change the directory. I have tried
Directory.SetCurrentDirectory(path) which runs but only changes the apps
logical current directory, not its physical current directory. I even tried
Environment.CurrentDirectory = path; to no avail.
Can anybody point me at the correct function that will do a ChDir (CD)
TIA
Chris
For info I am using VS 2005 beta 2
I have a Console App and I want it to do the equivalent of a Change
Directory (CD) command that you would do in normal command line mode as
follows:
CD ToASubDir
I am using the System.IO.Directory namespace to query where I am and look
for available subdirectories etc. This works fine but I cannot find anything
in that namespace that will physically change the directory. I have tried
Directory.SetCurrentDirectory(path) which runs but only changes the apps
logical current directory, not its physical current directory. I even tried
Environment.CurrentDirectory = path; to no avail.
Can anybody point me at the correct function that will do a ChDir (CD)
TIA
Chris