• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

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.
0
jtennyson
Asked:
jtennyson
3 Solutions
 
wasiftoorCommented:
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
 
chakkoCommented:
in your bat file you can do this

cscript  path\file.vbs
0
 
Darius GhassemCommented:
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

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now