Click here to Skip to main content
15,915,797 members
Home / Discussions / System Admin
   

System Admin

 
AnswerRe: Having a problem with my MMC. ?? Pin
Dave Kreskowiak26-Dec-05 14:13
mveDave Kreskowiak26-Dec-05 14:13 
QuestionMy computer thinks it is a RR crossing signal Pin
JimmyRopes25-Dec-05 22:35
professionalJimmyRopes25-Dec-05 22:35 
AnswerRe: My computer thinks it is a RR crossing signal Pin
Dave Kreskowiak26-Dec-05 6:20
mveDave Kreskowiak26-Dec-05 6:20 
GeneralRe: My computer thinks it is a RR crossing signal Pin
JimmyRopes26-Dec-05 10:24
professionalJimmyRopes26-Dec-05 10:24 
GeneralRe: My computer thinks it is a RR crossing signal Pin
Indivara26-Dec-05 13:42
professionalIndivara26-Dec-05 13:42 
GeneralRe: My computer thinks it is a RR crossing signal Pin
Dave Kreskowiak26-Dec-05 14:10
mveDave Kreskowiak26-Dec-05 14:10 
Questionstrange batch file syntax Pin
Indivara23-Dec-05 5:21
professionalIndivara23-Dec-05 5:21 
AnswerRe: strange batch file syntax Pin
Michael Dunn25-Dec-05 20:44
sitebuilderMichael Dunn25-Dec-05 20:44 
Taken from the 4NT help file::
Conditional Commands

When an internal command or external program finishes, it returns a result called the exit code. Conditional commands allow you to perform tasks based upon the previous command's exit code. Many programs return a 0 if they are successful and a non-zero value if they encounter an error.
If you separate two commands by && (AND), the second command will be executed only if the first returns an exit code of 0. For example, the following command will only erase files if the BACKUP operation succeeds:

[c:\] backup c:\ a: && del c:\*.bak;*.lst

If you separate two commands by || (OR), the second command will be executed only if the first returns a non-zero exit code. For example, if the following BACKUP operation fails, then ECHO will display a message:

[c:\] backup c:\ a: || echo Error in the backup!

All internal commands return an exit code, but not all external programs do. Conditional commands will behave unpredictably if you use them with external programs which do not return an explicit exit code. To determine whether a particular external program returns a meaningful exit code use an ECHO %? command immediately after the program is finished. If the program's documentation does not discuss exit codes you may need to experiment with a variety of conditions to see how the exit code changes.
Note that this is backwards from the C/Perl meaning of && and ||, because in DOS, 0 = succes but in C, 0 = failure.

--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Magnae clunes mihi placent, nec possum de hac re mentiri.
GeneralRe: strange batch file syntax Pin
Indivara26-Dec-05 4:26
professionalIndivara26-Dec-05 4:26 
QuestionChange Printing in WIndows XP Pin
Guru prasad sahoo23-Dec-05 1:42
Guru prasad sahoo23-Dec-05 1:42 
AnswerRe: Change Printing in WIndows XP Pin
Russell'23-Dec-05 4:40
Russell'23-Dec-05 4:40 
AnswerRe: Change Printing in WIndows XP Pin
Indivara23-Dec-05 5:33
professionalIndivara23-Dec-05 5:33 
AnswerRe: Change Printing in WIndows XP Pin
Mekong River31-Dec-05 15:00
Mekong River31-Dec-05 15:00 
QuestionWS 2003 SE Activation Pin
VickyC#21-Dec-05 23:41
VickyC#21-Dec-05 23:41 
AnswerRe: WS 2003 SE Activation Pin
Dave Kreskowiak22-Dec-05 6:23
mveDave Kreskowiak22-Dec-05 6:23 
GeneralRe: WS 2003 SE Activation Pin
VickyC#22-Dec-05 8:28
VickyC#22-Dec-05 8:28 
GeneralRe: WS 2003 SE Activation Pin
Dave Kreskowiak22-Dec-05 15:11
mveDave Kreskowiak22-Dec-05 15:11 
GeneralRe: WS 2003 SE Activation Pin
Mekong River23-Dec-05 15:57
Mekong River23-Dec-05 15:57 
GeneralRe: WS 2003 SE Activation Pin
Dave Kreskowiak26-Dec-05 6:18
mveDave Kreskowiak26-Dec-05 6:18 
GeneralRe: WS 2003 SE Activation Pin
Mekong River26-Dec-05 17:46
Mekong River26-Dec-05 17:46 
GeneralRe: WS 2003 SE Activation Pin
Dave Kreskowiak28-Dec-05 2:00
mveDave Kreskowiak28-Dec-05 2:00 
GeneralRe: WS 2003 SE Activation Pin
VickyC#25-Dec-05 21:16
VickyC#25-Dec-05 21:16 
QuestionW2K3: Opening a chm file from a network location, creating .reg files Pin
kfaday21-Dec-05 9:21
kfaday21-Dec-05 9:21 
AnswerRe: W2K3: Opening a chm file from a network location, creating .reg files Pin
Mekong River31-Dec-05 14:56
Mekong River31-Dec-05 14:56 
GeneralRe: W2K3: Opening a chm file from a network location, creating .reg files Pin
kfaday1-Jan-06 4:17
kfaday1-Jan-06 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.