Search found 3 matches

by dosgma
10 Aug 2010 16:54
Forum: DOS Batch Forum
Topic: Changing errorlevel numbers
Replies: 6
Views: 7575

Re: Changing errorlevel numbers

Yeah I guess I shouldn't depend on %errorlevel% for decision making.
Thanks for the explain @alan_b, makes sense.
@aGerman, yeah I used something similar in the end.
by dosgma
10 Aug 2010 14:37
Forum: DOS Batch Forum
Topic: Changing errorlevel numbers
Replies: 6
Views: 7575

Re: Changing errorlevel numbers

that works, but I wanna know why is it happening ?
There's a

Code: Select all

set /p rcname_local="Change Remote computer name to : "
if %errorlevel% neq 0 (
 set /a track+=1
 )
in my code and it won't work consistently because of this.
by dosgma
10 Aug 2010 14:15
Forum: DOS Batch Forum
Topic: Changing errorlevel numbers
Replies: 6
Views: 7575

Changing errorlevel numbers

okay, I've spent like two hours debugging a script and now I see this... http://lh3.ggpht.com/_lqGa78FIX-g/TGGyHPFBB2I/AAAAAAAAAMM/Qa0dAMHTZ4I/s800/dos.gif D:\WTF> set /p variable="Enter any value : " Enter any value : 12 D:\WTF> echo %errorlevel% 1 D:\WTF>dir Volume in drive D is Data Vol...