Link to home
Start Free TrialLog in
Avatar of yoavo
yoavo

asked on

SetCurrentDirectory question

Hi,
I need to change the current directory to "My Computer".
How do I do that ?

Yoav.
Avatar of jacobkristensen
jacobkristensen

Have you tried the SetCurrentDirectory(LPCTSTR lpPathName) - method?
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Axter
I haven't tried this, so I don't know if it will work.
But you could try using the name of your computer.
Example:
If your computer's name is "Devolp32" then you could try the following:
SetCurrentDirectory("\\Devolp32\");
SetCurrentDirectory() only works on file system object.  The "My Computer" is a Windows shell object and will not appear in the filesystem.  You also cannot set the current directory to "\\Computername".  This is invalid...