1.

Solve : run script in the batch file?

Answer»

Hi,

First of all, forgive me if i have posted this to the wrong place. I have an issue with the batch file.

I'm writing a SIMPLE batch file that would run the script file.

Here is the CODE
echo off
echo "Commencing mapping the network drive"
call %APPDATA%\mapdrive.vbs
pause
exit

Could anyone help me out on this?

Thank you in advanceIf your GOAL is to call a VBS file, you probably want something like:
Code: [SELECT]echo off
echo "Commencing mapping the network drive"
cscript "%APPDATA%\mapdrive.vbs"
pause
exit
If all the VBS does is map a network drive, you can do it in the batch file like:
Code: [Select]echo off
echo Commencing mapping the network drive
net use Z: \\Server\Share



Discussion

No Comment Found