HighTechTalks DotNet Forums  

WSH script return value??

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss WSH script return value?? in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Edward
 
Posts: n/a

Default WSH script return value?? - 02-16-2005 , 12:48 PM






How can I raise error in wsh script?
I'm writing the code to run the wsh using Ole Object.
The return value from wsh.Run is 0 (script is ok).
How can I get the return value 1 if the condition is false in wsh script?

Thanks in advance
Edward Koucherian

Reply With Quote
  #2  
Old   
Peter Falz
 
Posts: n/a

Default Re: WSH script return value?? - 02-16-2005 , 08:23 PM






Hi Edward,

"Edward" <Edward (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag news:4E0FD9FD-AA43-4A57-8D83-BAEC5C9BF3E5 (AT) microsoft (DOT) com...
Quote:
How can I raise error in wsh script?
take a look at
http://msdn.microsoft.com/library/de...vsmthraise.asp

Quote:
I'm writing the code to run the wsh using Ole Object.
The return value from wsh.Run is 0 (script is ok).
How can I get the return value 1 if the condition is false in wsh script?
???

Bye
Peter




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.