How do I call a .vbs script frm a simple .bat login script

I have simple .bat login scripts that just map drives.  I want to call a .vbs script from them.  Can someone please tell me how to do that?  It's very important.
jtennysonAsked:
Who is Participating?
 
wasiftoorConnect With a Mentor Commented:
You can simply create a batch file with the following lines:
@ECHO OFF

cscript HelloWorld.vbs

pause

Open in new window


Keep both of them in the same folder or modify paths appropriately.

Good Luck.
0
 
chakkoConnect With a Mentor Commented:
in your bat file you can do this

cscript  path\file.vbs
0
 
Darius GhassemConnect With a Mentor Commented:
cscript  filename.vbs
0
 
jtennysonAuthor Commented:
Thanks for the quick reply.  They wer all correct so I divided the points.  I didn't know what else to do.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.