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 al
I presume your testfolder is shared then do like this:
net use z: \\192.168.7.15\testfolder password /user:domain\username /savecred /p:yes