| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | ClrTree |
Here's an updated version (I also renamed it to CT.BAT ):
=== Cut ===
{at}Echo OFF
If %1.==. goto na
:chk
If %1.==/y. goto nxt
If %1.==/Y. goto nxt
If not exist %1\nul goto err
Deltree.exe %1
Mkdir %1
Goto nxt
:na
Echo.
Echo * Error - sub-dir name(s) not specified
Goto exit
:err
Echo.
dir /a:d /w /p
Echo.
Echo * Error - sub-dir [ %1 ] not found
:nxt
shift
If not %1.==. goto chk
:exit
Pause
=== Cut ===
AND, for the most popular sub-dir (TMP) that I use for testing:
=== Cut ===
{at}Echo OFF
If not %2.==. goto err
If %1.==TMP. goto ok
If %1.==tmp. goto ok
If not %1.==. goto err
:ok
If not exist TMP\nul goto nf
Deltree.exe /y TMP
Mkdir TMP
Goto exit
:nf
Echo.
dir /a:d /w /p
Echo.
Echo * Error - sub-dir .\TMP not found ...
Pause
Goto exit
:err
Echo.
Echo %%0 %%1 %%2 ... %%9
Echo You typed: %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
Echo.
Echo * Error - use CT.Bat for/with arguments ...
Pause
:exit
=== Cut ===
Be well,
: Ben aka cMech http://bellsouthpwp.net/c/m/cmech617/
:
+ WildCat! Board 24/7 (337) 232-4155 33.6kBps 8,N,1
--- GoldED+/DPMI32 v1.1.5 r0513
* Origin: FIDONet - The Positronium Repository (1:393/68)SEEN-BY: 633/267 270 @PATH: 393/68 261/38 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™.