Be seen. Boost your question’s priority for more expert views and faster solutions
@Echo off :Start Echo **** his script will map a network drive for you **** Cd %windir%\system32 Goto :PropertySet :PropertySet Echo **** Please Enter the Valid information **** Set /P DRIVE="Please Enter the Drive letter here:" Set /P PATH="Please Enter the Path here:" Pause Goto :MapDrives :MapDrives CLS Color 0f Echo **** Maping the Drive **** net use %DRIVE%: %PATH% If %ErrorLevel% equ 1 (Goto :Finish Else (Goto :Error) pause :Error Echo **** An Error has Occured Please make sure you selected a valid free drive letter and a the path you selected is correct. **** Pause Goto :Finish :Finish Echo **** This Operation has Finished Succesfuly **** :End pause exit
Join the community of 500,000 technology professionals and ask your questions.