Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exit codes from system command issue

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
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 operating system is returing the exit code, not perl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top