AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page
   Local Database  BAT Magic   [206 / 250] RSS
 From   To   Subject   Date/Time 
Message   Visitor    ALL   RDIR.BAT   December 9, 1995
 2:30 PM *  

Title:      "Clearing Old Directories"
Reference:  PC World June 1990
Author:     Joel M. Wilson
Files:      RDIR.DOC, RDIR.BAT

The batch file RDIR.BAT uses a little-known DOS technique to automate
directory deletions. When you type del dirname to delete the files in
a directory, DOS asks, "Are you sure (Y/N)?" RDIR.BAT uses echo y to
answer that question for you.

Copy RDIR.BAT to a directory in the current path. Use the program to
remove one or more directories plus any files they contain. For
example, if the current directory has two subdirectories, TEMP1 and
TEMP2, enter rdir temp1 temp2 to remove those directories and delete
all of their files.

If a subdirectory you attempt to remove contains other directories,
you'll receive an "Invalid path..." message. In that case, use CD to
make the subdirectories current and RDIR to remove all directories in
the path. If you receive the error message "File not found," the
directory was already empty before RDIR removed it.

--[Cut here]----------------------------------------------------------

echo off
:loop
if "%1"=="" goto end
echo.
echo Directory %1 is about to be deleted.
echo Press Ctrl-CY to cancel or
pause
echo Y | del %1 >nul
rd %1 >nul
shift
goto loop
:end
___ Blue Wave/QWK v2.12
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0144 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108