How do I put Nslookup exit status into a variable! DelProf2.exe script
I have a problem. I have wrote a script that gets an IP address from Nslookup and passes it to DelProf2.exe.
However, I obviously need some error handling in the script so I can influence the flow of the batch file as it is run (if something goes wrong GOTO function name).
I'd like to control the flow upon Nslookup succeeding or failing.
How do I access the exit status and assign it to a variable?
Thanks in advance. This is my first post. This has been doing my head in!
Note: I will post up finished bat file upon completion so you can all benefit if needed.