• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 929
  • Last Modified:

MS DOS batch execution - how to not prompt for feedback

I would like to do some things in a ms dos batch file that usually prompt for user feedback

del c:/path/*.*
asks me are you sure?
how can I just go on without getting the prompt

I would also like to echo the time
If I add "time"
I get a prompt for "enter new time"
Can I also stop that?


Geert Bormans
Geert Bormans
3 Solutions
del /q c:/path/*.*
time /t
Christopher McKayMicrosoft Network AdministratorCommented:
try these commands instead:

del c:\path*.* /y


echo time /t

Hope this helps!


Christopher McKayMicrosoft Network AdministratorCommented:

del /q is the correct switch to use. not /y
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

del /?    for all possible flags

and time /t
Geert BormansInformation ArchitectAuthor Commented:
thanks guys
Christopher McKayMicrosoft Network AdministratorCommented:
Yeesh.... I'm not doing well today.
time /t to just display the time, using the echo command in front won't work either.

Time for me to go get more coffee.
Geert BormansInformation ArchitectAuthor Commented:
no, it will just put "time /t", but I left the echo out when trying.
consider it a challenge for the original poster :-)
Lee W, MVPTechnology and Business Process AdvisorCommented:
Assuming this is not actually DOS, but rather a Windows NT/2000/XP/2003/Vista machine with a command prompt, you can also use

echo %time%
echo %date%
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now