Re: choice wscript or cscript in .vbs




"zloup" <zloup@xxxxxxxx> wrote in message
news:482b0ebf$0$837$ba4acef3@xxxxxxxxxxxxxxxxx
Hello

How to choice wscript or cscript in a .vbs.
i want cscript when i go a script on an unknow PC, when i don't know
the script for default

thank you


You could do a groups.google search for the string "force cscript".
Walter Zackery posted a way for a script to find out whether it had
been started under CScript, and force it to restart under CScript if
it had been started under WScript. It should be easy enough to modify
the script to ask how you want it run, and then run it that way.

-Paul Randall


.



Relevant Pages

  • Re: cscript errors when running many concurrent vbs scripts
    ... > i have a java application that spawns cscript to run a simple vbs ... > Script Host failed. ... > processes from java), i'm looking into writing a c++ dll that makes ...
    (microsoft.public.scripting.wsh)
  • RE: Using SMS to install network printers
    ... - When it spawns it has to have appropriate rights. ... directory from a command line and run the batch file. ... You might have to tweak your script a bit for error ... > cscript SCRIPTNAME.VBS ...
    (microsoft.public.sms.misc)
  • Re: Perfmon script not working??
    ... I had perfmon call a bat file with (cscript ... | I'm trying to monitor free disk space using Performance Monitor. ... | free space falls below a certain value I have an email.vbs script I ... | An alert was created on Windows 2003 server using the Logical Disk ...
    (microsoft.public.win2000.general)
  • Re: Anonymous works 1 Day ??
    ... If you run CSCRIPT //h:CSCRIPT that will set CSCRIPT as the default script ... This right is needed for IIS to logon the anonymous user though. ...
    (microsoft.public.inetserver.iis.security)
  • RE: VBScript in SQL Server Agent/Jobs not working
    ... Basically, Windows Scripting Host has two script calling executibles, WScript ... the .VBS or .JS extension and call it with WScript or CScript. ...
    (microsoft.public.sqlserver.server)