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:
[color=blue]
>CD ToASubDir[/color]
I am using the System.IO.Direc tory 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.SetCu rrentDirectory( path) which runs but only changes the apps
logical current directory, not its physical current directory. I even tried
Environment.Cur rentDirectory = 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:
[color=blue]
>CD ToASubDir[/color]
I am using the System.IO.Direc tory 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.SetCu rrentDirectory( path) which runs but only changes the apps
logical current directory, not its physical current directory. I even tried
Environment.Cur rentDirectory = path; to no avail.
Can anybody point me at the correct function that will do a ChDir (CD)
TIA
Chris
Comment