Kix scriptint if @ERROR
#1
Scooby Regular
Thread Starter
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#2
Scooby Regular
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
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
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
#3
Scooby Regular
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
Make sure you catch the return code... for example
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
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
ps the variable name is not important, I used to use $iRetVal
#4
Scooby Regular
Thread Starter
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes
on
0 Posts
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
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
Thread
Thread Starter
Forum
Replies
Last Post
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM