I found CHDIR can be used to select an UNC path (this is an undocumented use for that statement). Hence to set the current directory to a path I can do one of the following:
1 - If the path conatins a drive letter ( like E: ) I use CHDRIVE to set the drive and CHDIR to set the path
2 - If the path is an UNC, I only use CHDIR
Is this correct? Or must I use some API call to set the curret drive-path to an UNC?
Another question. Is it a good practice to use CHDIR to see if a path exists?
Aldo
------------------
[This message has been edited by Aldo Cavini (edited May 03, 2001).]
1 - If the path conatins a drive letter ( like E: ) I use CHDRIVE to set the drive and CHDIR to set the path
2 - If the path is an UNC, I only use CHDIR
Is this correct? Or must I use some API call to set the curret drive-path to an UNC?
Another question. Is it a good practice to use CHDIR to see if a path exists?
Aldo
------------------
[This message has been edited by Aldo Cavini (edited May 03, 2001).]
Comment