Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: delay script return

Reply
 
Old 03-18-2009   #1 (permalink)
Pegasus [MVP]


 
 

Re: delay script return


<linuxnooby@xxxxxx> wrote in message
news:475907b8-dd24-405e-bf22-f05d4a34adfd@xxxxxx
Quote:

> Hi
>
> I need a script that will run from the command line but will delay
> return to the command prompt until script has completed.
>
> If I use
>
> WScript.Sleep(3000)
>
> The command prompt returne immediately , while the script is sleeping.
>
> I can delay return by invoking script with the cscript command.
> However the script I am writing is for Windows steadystate which can
> use custom update scripts. The script required needs to a script name
> rather than a command.
>
> eg sleep.vbs
> not
> cscript sleep.vbs
>
> any help greatly appreciated
>
> cheers David
Make cscript.exe your default VB Script interpreter by running this command
just once:
cscript //h:cscript

Type cscript /? to see the full set of switches.



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Call binary to return value in Powershell script PowerShell
Script to delay launch of program(s) VB Script
problem passing args to script 'There is no script engine for file extenstion' VB Script
return variable through script in script VB Script
Obtaining Script Exit Return Codes PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46