Link to home
Start Free TrialLog in
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)Flag for Belgium

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
wups.

del /q is the correct switch to use. not /y
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gertone (Geert Bormans)

ASKER

thanks guys
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.
no, it will just put "time /t", but I left the echo out when trying.
consider it a challenge for the original poster :-)
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%