Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can GPO startup scripts run in cscript.exe instead of wscript?

Posted on 2003-11-04
2
Medium Priority
?
1,213 Views
Last Modified: 2012-06-21
Simple question- I'm trying to convert my company's login and startup scripts from .bat to .vbs.  We like to "echo" things to notify the user of whats going on.  When I wscript.echo in the startup script, it pops up messageboxes.  I'd like the cscript command window.  Is this possible?  I don't know where a setting would be to change this.

I realize I could call cscript.exe from a .bat, but I'd rather avoid that if possible.

Thanks.
0
Comment
Question by:bohiti
[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
2 Comments
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 375 total points
ID: 9683687
Basically, if you have the script ready, you can call it from another script:

   Set objShell = CreateObject("WScript.Shell")
   strCmdLine = "cmd /k cscript.exe script.vbs"
   objShell.Run(strCmdLine)

You can elaborate on that to make e.g. a menu with the scripts you use..
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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