Click to See Complete Forum and Search --> : batch file
zzzreyes
09-11-2000, 10:54 AM
I got 15 computers that have a program that I must remove, I am writting a small batch file to do this.
first how do i change all the attributes to all the folders within the folder, and second how do I delete everything on it.
D:\stuff\
so I want to recursively delete everything in stuff??
Del *.* (to delete all files in current folder)
EX:
Attrib -a -r -h -s(removes attributes)
a=archive
b=read-only
h=hidden
s=system
- = remove
+ = add
[This message has been edited by NDC (edited 09-11-2000).]
bobcat
09-11-2000, 11:21 AM
deltree will recursively remove directories.
qball
09-11-2000, 11:47 AM
Almost there, the command deltree requires input when using '*.*'. It is the imfamous 'Are you sure?'.
You should be able to do either of these, but try 'em out first;
deltree c:\junk\*.* < y
or
create text file named y.txt. It contains the letter y and a newline/return.
deltree c:\junk\*.* < y.txt
Hope this helps.
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.