I'm using a function in some C++ code in visual studio .NET 2003 that uses the chdir command. For example, if I want to change the working directory to the C: ( the hard drive ), I just put
and the result is zero, meaning success. However, if I try ANY other drive, spefically CD or DVD drives, the result is -1, meaning it couldn't find the drive. Can anyone tell me what the problem might be, or turn me in the right direction to figure this out. Thanks.
Code:
int result = _chdir( "C:/" );
Comment