Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Substituting disk drive letters

Status
Not open for further replies.

AAP

Programmer
May 8, 2000
93
0
0
GB
In DOS you could substitute one driver letter for another,
Eg. SUBST F:\ C:\ would redirect any calls to the network volume F:\ to the local drive C:\. Is there an equivalent technique in the Win32 API? I need to take a network based system and install it on a standalone PC. I don't relish changing all the drive mapping individually, and shelling out to run SUBST through a DOS batch file don't look too professional.
 
I don't think SUBST will still work on windows systems.
Why don't you create a share on your c-drive and create a drive mapping for the f-drive.

hennep
 
Thanks hennep - Surprisingly SUBST does still work. The PC in question is running WIN2000 Professional.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top