Solved

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

Posted on 2012-04-09
4
452 Views
Last Modified: 2012-06-21
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
Comment
Question by:jtennyson
4 Comments
 
LVL 9

Accepted Solution

by:
wasiftoor earned 167 total points
ID: 37824226
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
 
LVL 22

Assisted Solution

by:chakko
chakko earned 167 total points
ID: 37824231
in your bat file you can do this

cscript  path\file.vbs
0
 
LVL 59

Assisted Solution

by:Darius Ghassem
Darius Ghassem earned 166 total points
ID: 37824232
cscript  filename.vbs
0
 

Author Closing Comment

by:jtennyson
ID: 37824372
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
A procedure for exporting installed hotfix details of remote computers using powershell
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question