Quantcast
Channel: SCN : All Content - Scripting Languages
Viewing all articles
Browse latest Browse all 522

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 522

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>