said:
Hi,
>I didn't know that 4OS/2 would delete an entire tree like that.
There's always something new to learn.
>I still
>am confused by the syntax. How would I delete
>h:\test
>where test has an entire tree below it?
4OS2 has extensive command line and online help
[j:\tmp]del /?
Erase the specified file(s) from the disk.
Usage: DEL [/A:[[-]rhsda] /EFNPQSTWXYZ] [d:][path]filename...
/A: Select files by attributes
/E Don't display non-fatal errors
/F Don't copy the file(s) to the DELDIR directory
/N Don't actually delete the file(s)
/P Confirm deletion for each file (Y or N)
/Q Don't display filenames or totals
/S Delete matching files in the subdirectories
/T Display totals only
/W Wipe the file to 0's before deleting
/X Remove empty subdirectories after deleting (use with /S)
/Y The reverse of /P - it assumes a Y response to everything
/Z Delete all files, including read-only, hidden and system files
so
del /sexy h:\test
or
del /sexy h:\test\*
will do it. This will delete h:\test too, but there are ways to prevent
this if needed. One simple method is
cd h:\test
del /sexy h:\test\*
If you have system and hidden files, you need to use
del /sexyz h:\test\*
Regards,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 eCS/Warp/DIY/14.103a_W4 etc.
www.scoug.com irc.ca.webbnet.info #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
Return to [ 14 |
February |
2007 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.