often i have to create map drive where i specify machine and user credential. now i like to know can we write a batch file which will create map drive and where i provide all details like pc and folder location and user credentials etc. i got one as follows but i think this is not one which i require. please guide me. thanks
net use \\<network-location>\<some-share>\ password /USER:username
@echo Create new L: drive mapping
@net use L: \\network path /persistent:yes
@echo Create new K: drive mapping
@net use K: \\network path /persistent:yes
:exit
if i do this way...then does it work
net use y: \\192.168.7.15\$D\testfolder password /USER:username /PERSISTENT:YES
please guide.....the syntax is ok?