?
Solved

del command of dos. dont ask for confirmation

Posted on 2007-10-19
2
Medium Priority
?
2,317 Views
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
0
Comment
Question by:Mehram
2 Comments
 
LVL 97

Accepted Solution

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

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

Author Comment

by:Mehram
ID: 20113993
Yes leew.

While searching EE I also found

echo y | del

Thanks for your quick rsposnse
0

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