Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Kix scriptint if @ERROR

Thread Tools
 
Search this Thread
 
Old 13 July 2006, 11:20 AM
  #1  
darlodge
Scooby Regular
Thread Starter
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default Kix scriptint if @ERROR

David, you around ?

Currently if our script encounters an error it aborts and the user is logged into Windows without completing the script.

This means if the script fails on line 12 of 80, there will be alot of things that are not set.

I'm looking for a kix command that continues running the script even if it fails on line 12.

I've been looking at if @ERROR=1 but I can't see how to make it continue. I can call another script, send and e-mail alert, or notify the users, but not continue running the script.

Darren
Old 13 July 2006, 02:42 PM
  #2  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

You mean something similar to the vbs On Error Resume Next?

Try running the script with wkix32.exe Im sure that was better but its been a while, Ill have a play and get back to you.

David
Old 13 July 2006, 02:56 PM
  #3  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

Make sure you catch the return code... for example
Code:
$RC=WriteValue("EZReg\Test", "A MultiString variable", "Line 1|Line 2|Line 3 with a || in it|" "REG_MULTI_SZ")
If @ERROR = 0
  ? "Value written to the registry"
Endif
You should then be able to do something with it, I've allways prefered VBS, just old company were stuck in their ways with Kix so I had to work around what we had!!

ps the variable name is not important, I used to use $iRetVal
Old 14 July 2006, 12:36 PM
  #4  
darlodge
Scooby Regular
Thread Starter
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

Thanks David,

I was hoping that I could use something similar to On Error Resume Next like in VBS, yes.

I'll give wkix32.exe a bash,

Cheers David
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
SD
Non Scooby Related
8
02 October 2001 06:46 PM
Nimbus
Non Scooby Related
3
22 June 2001 12:21 PM
Stuart H
Non Scooby Related
2
17 January 2001 08:42 PM



Quick Reply: Kix scriptint if @ERROR



All times are GMT +1. The time now is 05:45 PM.