?
Solved

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

Posted on 2003-11-04
2
Medium Priority
?
1,201 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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…
Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

800 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