home *** CD-ROM | disk | FTP | other *** search
- *
- * DELDIR.XSL
- * XSL shell script to delete a folder and its contents
- * (will not recursively delete folders)
-
- * Syntax: DELDIR directory
-
- * (C) Copyright 1989 by DW Software
-
-
-
- * *** PRINT SYNTAX MESSAGE ***
-
- if notequal %argc 1
- echo " Syntax: DELDIR directory"
- echo
- exit -2
- endif
-
-
- * *** REMOVE FILES WITHIN FOLDER ***
-
- rm %1\*.*
- if notequal %result 0
- echo " deldir: can't delete files within directory "%1
- echo
- exit -1
- endif
-
-
- * *** REMOVE FOLDER ***
-
- rmdir %1
- if notequal %result 0
- echo " deldir: can't remove directory "%1
- echo
- exit -1
- endif
-
- * *** FINISHED OK ***
-
- exit
-