Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using .bat or .vbs to run multiple .vbs scripts?

Status
Not open for further replies.

CoreyWilson

IS-IT--Management
Feb 3, 2004
185
CA
Hi All,

We have two vbs scripts. One for mapping printers and one for mapping drives. I would like to create a single .bat or .vbs script that will call and run each of these .vbs files.

I am not real experienced with .vbs so your assistance is greatly appreciated.
 
CoreyWilson,

why not just use the call command?
in the .bat you want to run:
Code:
call printmap.vbs
call drivemap.vbs
or just put the commands from the 2 .vbs' into a single one.
regards,
longhair
 
I was wondering, in much the same way as longhair, why are you using two vbs files instead of one?

JJ
[small][purple]Variables won't. Constants aren't[/purple][/small]
 
we have been using two because it has been easier to manage to this point and since they were created at seperate times. Our printer script maps about fifty different printers and our drive mapping script has about 60+ groups and well over a hundred different mappings. There are tons of lines and entries.

I was running into a problem with invalid command arguments when I tried to combine the scripts and I really am not knowledgable and have not had the time to spend troubleshooting.

I will try using the call command in a .bat file, thanks for the suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top