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

System Admin

 
AnswerRe: Having a problem with my MMC. ?? Pin
Indivara26-Dec-05 13:45
professionalIndivara26-Dec-05 13:45 
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 
I came across the following syntax in a batch file (runs on XP, probably on any NT version)

type filename.ext || echo error

The result is that if filename.ext exists, its contents are listed, but if it doesn't, the second command (echo error) is executed

The same is true of any command other than type and echo, meaning that the part after || is executed only if the first command fails.

This feels like an incredibly stupid question, but what exactly does || do? I know that | is the pipe operator... D'Oh! | :doh:

Seaching the web came up with this wonderful site which gives all kinds of batch file examples & tips, but I can't find the above
http://www.robvanderwoude.com/[^]

This is off topic, but I even found out that it is now possible to write subroutines in batch files, using call :label & goto :eof OMG | :OMG: ...



- Indivara

"...This city desert makes you feel so cold.
It's got so many people but it's got no soul..."

- Gerry Rafferty, Baker Street

AnswerRe: strange batch file syntax Pin
Michael Dunn25-Dec-05 20:44
sitebuilderMichael Dunn25-Dec-05 20:44 
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 

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.