batch file - Erase * in Windows command line without prompt -


ok, trying delete files using windows script, , use internal commands delete files (del mydirectory*) without confirmation prompt. internet says that, default, there should no confirmation prompt.

however, there confirmation prompt. there easy, simple way delete files without prompt? or way automate deletion--somehow input "y" on next line of batch script or something?

i using command prompt in windows server 2012. know dos commands seem work, , run del * without prompt...but windows unicorns, pillows , padded corners slapping me upside head.

command is: del *

try

del *.* /q  

you can find del command options /? param


Comments