icemanind
Member
- Joined
- Mar 20, 2008
- Messages
- 12
- Programming Experience
- 5-10
I am writing a console application and I am trying to change directories. I am using Directory.SetCurrentDirectory() method and its changing directories just find. The problem is, however, when my application exits, it sets the current directory back to where I was. I also tried importing the SetCurrentDirectory API call from Kernel32.dll and using that instead of Directory.SetCurrentDirectory(). However, it does the same thing. It successfully changes the directory, however, it doesn't "stick" when the application terminates. Is there a way around this?
If there is no way to get around this, then my next question would be, is it possible to call old DOS interrupts from a console application? That way I could called Interrupt 0x21, function 3B, which DOES change the directory, even when the application terminates.
Any help would be appreciated!
If there is no way to get around this, then my next question would be, is it possible to call old DOS interrupts from a console application? That way I could called Interrupt 0x21, function 3B, which DOES change the directory, even when the application terminates.
Any help would be appreciated!