Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3257

Cannot get WScript.Quit to work to give user choice terminate script

$
0
0

Hi,

 

I've been attempting insert this code into an if statement and keep getting the same error:

 

'Object Required: 'WScript' -

 

Reading through the various forums, I've placed this code:

set WScript = CreateObject("WScript.Shell") in anumber of areas and it does not work

 

Does anyone know how to fix this and/or any other alternative for a user

to have the choice to Exit/Stop/Terminate a script,

 

Thanks


Viewing all articles
Browse latest Browse all 3257

Trending Articles