Solved

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

Posted on 2012-04-09
4
446 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to upgrade SCCM 2012 r2 to SCCM 2016 4 59
Remote Desktop Certificates 6 44
Windows 7 won't join domain 4 42
Need script to search multiple files in one drive 13 33
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now