TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Jasen Betts
from: Bruce Howells
date: 2003-04-21 13:09:04
subject: The reason for this eecchhoo...

Jasen!
 
=>I found  2 ways to use fewer lines and fewer variables.
 
Only 2? :) Least I got you thinkin' batch. A friend suggested that the
parms within the For/Do loops (0 1 2 3 4...) could be SET to an Env. Var.
and thus replaced by %var%, which is true BUT sometimes the originating
programmer insists on doing it HIS way!
 
BTW, I knock up this alternate method to achieve the `incremental rename'
operation `cause the other batch I have uses the old For/Do forward slash
trick to progressively strip off the leading char. from the string in the
For/Do loop. That `trick' unfortunately doesn't work with Dos 7 (32 bit
Windows).
 
Do you know what the story is with XP and dos errorlevels? I get the
impression that errorlevels don't work (the same?) under XP as previosly.
Bruce

---
* Origin: Melbourne PC User Group BBS (3:633/309)
SEEN-BY: 633/267 270
@PATH: 633/309 104 260 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.