if folder exist delete it

May 29, 2011 at 22:58:31
Specs: Windows 7
hi i want my batch file to check if a folder exists and its empty the script delete it but if it si not empty it asks the user to empty the folder and press[yes] to delete the folder
Thank you

See More: if folder exist delete it

Report •

May 31, 2011 at 00:34:02
echo Delete "y:\our\dir" [if not empty]
if exist "y:\our\dir\" rd /s "y:\our\dir"

Report •
Related Solutions

Ask Question