del command of dos. dont ask for confirmation

Posted on 2007-10-19
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 95

    Accepted Solution

    use /q -

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

    Author Comment

    Yes leew.

    While searching EE I also found

    echo y | del

    Thanks for your quick rsposnse

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why do Marketing keep bothering you?

    Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

    The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
    This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now