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.
Who is Participating?
wasiftoorConnect With a Mentor Commented:
You can simply create a batch file with the following lines:

cscript HelloWorld.vbs


Open in new window

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

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

cscript  path\file.vbs
Darius GhassemConnect With a Mentor Commented:
cscript  filename.vbs
jtennysonAuthor Commented:
Thanks for the quick reply.  They wer all correct so I divided the points.  I didn't know what else to do.
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.