Re: batch file command?
- From: "Miha Pihler [MVP]" <mihap-news@xxxxxxxxxxx>
- Date: Fri, 18 Nov 2005 08:23:49 +0100
Hi,
This was changed late in DOS days. You must use -y and not /y in this case.
If you leave *.* -y you will get a prompt that asks you if you are sure...
Microsoft changed these options since it was considered dangerous (e.g. any
virus could come and remove all files from the drive)...
What you can still use is e.g.
del *.log -y (and not /y). In this case the command will remove all files
named *.log
You can use another type of script (e.g. VBS script) that will remove all
files in the folder... Such script can be found here...
Delete All Files in a Folder
http://www.microsoft.com/technet/scriptcenter/scripts/storage/files/stfivb06.mspx
Change the path in the script "C:\FSO\*.txt" to e.g.
C:\WINDOWS\system32\NtmsData\*.*
I hope this helps,
--
Mike
Microsoft MVP - Windows Security
"alex" <alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0954E764-2FD5-4242-ACA9-B6B2485411FF@xxxxxxxxxxxxxxxx
>I have this in a batch file del C:\WINDOWS\system32\NtmsData\*.* /y the /y
>is
> suppose to answer yes to the question but doesn't. why?
.
- Follow-Ups:
- Re: batch file command?
- From: Pegasus \(MVP\)
- Re: batch file command?
- Prev by Date: Re: problem with importing a DHCP database from NT4 to W2k3
- Next by Date: Re: change the server
- Previous by thread: Re: back not backing up
- Next by thread: Re: batch file command?
- Index(es):
Relevant Pages
|