Run cscript automatically.

G

Guest

i write a WMI script which basically list all files of all folders in a
computer. If i double click this script, i want a command prompt open and the
scrip basically runs in a command prompt .

how do i do that.? thank you
 
M

Marty List

CuriousMe said:
i write a WMI script which basically list all files of all folders in a
computer. If i double click this script, i want a command prompt open and
the
scrip basically runs in a command prompt .

how do i do that.? thank you



Try "//H:CScript"

C:\>CScript.exe /?
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top