• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 926
  • 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 McKayCommented:
try these commands instead:

del c:\path*.* /y

and

echo time /t

Hope this helps!

:o)

Bartender_1
0
 
Christopher McKayCommented:
wups.

del /q is the correct switch to use. not /y
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LimbeckCommented:
del /?    for all possible flags

and time /t
0
 
Geert BormansAuthor Commented:
thanks guys
0
 
Christopher McKayCommented:
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 BormansAuthor 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

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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