MoshiachNow
IS-IT--Management
HI,
The following commands produces "0" exit code,even if the registry key does not exist:
system("regedit /e BRDG.reg HKEY_LOCAL_MACHINE\\Software\\Creo\\Araxi\\2.0.4.BLD69\\Default\\BRDG");
Another command produces exit code "1024"if the file does not exist ("$? >> 8" matches "4"):
system("xcopy /e /i d:\\InetPub\\ Logo");
What IS the right way to catch the correct exit code for both ?
Thanks
Long live king Moshiach !
The following commands produces "0" exit code,even if the registry key does not exist:
system("regedit /e BRDG.reg HKEY_LOCAL_MACHINE\\Software\\Creo\\Araxi\\2.0.4.BLD69\\Default\\BRDG");
Another command produces exit code "1024"if the file does not exist ("$? >> 8" matches "4"):
system("xcopy /e /i d:\\InetPub\\ Logo");
What IS the right way to catch the correct exit code for both ?
Thanks
Long live king Moshiach !