Solved

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

Posted on 2012-04-09
4
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
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 install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

740 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