I want to write a simple C# console application to change the current directory of the command line to a directory the application works out. Looking through MSDN System.IO.Directory.SetCurrentDirectory looks ideal for this until I saw in the remarks that:
'When the application terminates, the working directory is restored to its original location (the directory where the process was started).'
And sure enough when I tried this in a test application it didn't work. Does anyone have any idea how to implement a CD variant in C#?