Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

[HELP] Run a .vbs from command line silently

- - - - -

  • Please log in to reply
2 replies to this topic

#1
straytoasters

straytoasters

    Junior

  • Member
  • Pip
  • 99 posts
  • Joined 25-January 06
I have a successful batch file (not WSH) but the two .vbs's that are called from it prompt to run. Is there a way to have it not prompt to run like filename.reg /s allows you to run a .reg silently?

Straytoasters


How to remove advertisement from MSFN

#2
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,252 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.



>cscript /?

Microsoft (R) Windows Script Host Version 5.6

Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.



Usage: CScript scriptname.extension [option...] [arguments...]



Options:

 //B		 Batch mode: Suppresses script errors and prompts from displaying

 //D		 Enable Active Debugging

 //E:engine  Use engine for executing script

 //H:CScript Changes the default script host to CScript.exe

 //H:WScript Changes the default script host to WScript.exe (default)

 //I		 Interactive mode (default, opposite of //B)

 //Job:xxxx  Execute a WSF job

 //Logo	  Display logo (default)

 //Nologo	Prevent logo display: No banner will be shown at execution time

 //S		 Save current command line options for this user

 //T:nn	  Time out in seconds:  Maximum time a script is permitted to run

 //X		 Execute script in debugger

 //U		 Use Unicode for redirected I/O from the console

MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#3
kingsc

kingsc

    Member

  • Member
  • PipPip
  • 130 posts
  • Joined 14-July 08

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

>cscript /?
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Usage: CScript scriptname.extension [option...] [arguments...]

Options:
 //B		 Batch mode: Suppresses script errors and prompts from displaying
 //D		 Enable Active Debugging
 //E:engine  Use engine for executing script
 //H:CScript Changes the default script host to CScript.exe
 //H:WScript Changes the default script host to WScript.exe (default)
 //I		 Interactive mode (default, opposite of //B)
 //Job:xxxx  Execute a WSF job
 //Logo	  Display logo (default)
 //Nologo	Prevent logo display: No banner will be shown at execution time
 //S		 Save current command line options for this user
 //T:nn	  Time out in seconds:  Maximum time a script is permitted to run
 //X		 Execute script in debugger
 //U		 Use Unicode for redirected I/O from the console


Cool, you rock cluberti, thanks.
Steven King, CCNA
Desktop Analyst
Enterprise Support | Networking




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users