I have the following batch file that I use to map drives. I need to change this to vbscript as a number of users that need to use it have had the command prompt disabled. I have no experience at all with VB so could someone translate this for me:
Many thanks for your help.Code:if exist \\server1\folder1\%username%\*.* goto NET if exist \\server1\folder2\%username%\*.* goto NET if exist \\server2\%username%$\*.* goto NET2 goto DONE :NET net use /persistent:no net use k: "\\server1\Shared Area 1" net use p: \\server1\Admin1 net use t: \\server1\Admin2 net use w: "\\server1\Shared Area 2" goto DONE :NET2 net use /persistent:no net use k: "\\server1\Shared Area 1" net use w: "\\server1\Shared Area 2" goto DONE :DONE exit




Reply With Quote