• 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?

thanks

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

del c:\path*.* /y

and

echo time /t

Hope this helps!

:o)

Bartender_1
0
 
Christopher McKayMicrosoft Network AdministratorCommented:
wups.

del /q is the correct switch to use. not /y
0
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.

 
LimbeckCommented:
del /?    for all possible flags

and time /t
0
 
Geert BormansInformation ArchitectAuthor Commented:
thanks guys
0
 
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.
0
 
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 :-)
0
 
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%
0
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