Gertone (Geert Bormans)
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
no, it will just put "time /t", but I left the echo out when trying.
consider it a challenge for the original poster :-)
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%
echo %time%
echo %date%
del /q is the correct switch to use. not /y