Two questions actually:
-- I am calling an external executable from a batch file. This program calls another executable by relative file name, and assumes that the path to the executable is in the PATH variable. Because this application is run by several users on various computers, I need for my batch file to verify that the path to this application is part of the PATH variable. Is there a way to read the PATH variable, and append a value to it if it doesn't already exist?
-- The same executable runs some processes and then returns control to my batch file. Is there a way for the batch file to check the return value of this executable, so I can stop processing if it encounters errors?
Thanks
Tim