Input Error when running WSH script -


i'm trying run wsh script using cscript in cmd got error

input error: there no script file specified. 

using command

cscript  c:\file.wsh 

on windows 7 ultimate wsh script writes registry entry don't want use vbscript (.vbs) or wscript engine how can make wsh script work ?

.wsh

the windows script host control file (.wsh) text document in can customize execution of 1 or more of scripts. created automatically when set properties supported script file.

the following example illustrates typical .wsh file:

[scriptfile] path=c:\winnt\samples\wsh\showprop.vbs [options] timeout=0 displaylogo=1 batchmode=0 

the path information in [scriptfile] section identifies script file associated .wsh file. keys in [options] section correspond settings in script tab within properties dialog box.

note:

  • you must have original script file present when executing .wsh file. if .wsh file fails run script, check path= information in .wsh file ensure points script attempting run.
  • when double-click .wsh file or run command line, cscript.exe or wscript.exe reads .wsh file determine specific settings should used execute script. cscript/wscript executes original script, passing in properties defined within .wsh file.
  • it's not possible specify script parameters .wsh file. must run script (either script file or .wsh file) command prompt add parameters.

resource: setting , customizing script properties (.wsh)


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -