console - How to delete all files in a directory using batch? -


i have simple query. have folder "x" on desktop (windows 7), , want write batch program delete files in it. (all extensions) i've come with:

cd c:\users\admin\desktop\x\ del *.* 

but, when open it, console still asks human input (y/n). can bypass this?

always use explicit path flaw not delete current folder, whatever may @ time.

all visible files, silently

del "c:\users\admin\desktop\x\*.*?" 

all visible files, silently using /q

del /q "c:\users\admin\desktop\x\*.*" 

all visible files, including subdirectories, silently

del /s /q "c:\users\admin\desktop\x\*.*" 

type del /? full info.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -