del command of dos. dont ask for confirmation

Posted on 2007-10-19
Medium Priority
Last Modified: 2013-12-28
the batch file abc.bat has this line

del \\xql\*.*
copy \\abc\*.* \\xql

I have put this file in a schedule.

The proble is that the del command is asking y/n confirmation before deleting.

I want it to be auto. I dont want [del] to ask confirmation
Question by:Mehram
LVL 97

Accepted Solution

Lee W, MVP earned 2000 total points
ID: 20113985
use /q -

del /q \\server\path\filespec.ext

Author Comment

ID: 20113993
Yes leew.

While searching EE I also found

echo y | del

Thanks for your quick rsposnse

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question