Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same as DelTree...

Status
Not open for further replies.

y3by

Programmer
Jan 15, 2002
92
PT
hi ppl,
in my organization we have mapped one drive for temporary exchange of files.
this drive is a shared folder in fileserver, and it must be cleanned every 15 days.
i tryed to create a bat file and put a task to run that bat, but i want to delete files and subfolders inside that folder and not to delete the folder.
i tryed to use
"rmdir /s c:\xpto" or
"rmdir /s c:\xpto\" or
"rmdir /s c:\xpto\*.*" and
"rmdir c:\xpto\"

how can i delete that garbage and keep the folder xpto with my ntfs permissions

thanks
 
Not sure about the licensing issues here, but deltree from previous versions of windows works fine. I've been using it with WinXP for quite some time now without any problems.
 
hi spideyguy...
humm i'm using winxp pro and i'd seen Help and i don't find any deltree...
i found rd and rmdir...
i've tried every thing i can remember...
i keep getting syntax incorrect or the folder xpto deleted..
but i want only to delete what is inside xpto folder..
i thougth of moving (move )the inside of xpto folder to anouther folder and then clean the other folder but i also couldn't get great result...
it behaves (sory my english :) ) like a "rename"

the nearesti get was by doing "del c:\xpto /s /q" but it doesn't delete sub-directories...

can some one help me or point me to some utility that i can do that...

thaks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top