windows - bat file to delete containing folder when double clicked? -


what in batch file delete contents of containing directory , directory itself. using following command:

rmdir ..\dir /s /q & exit 

this works in deletes of contents in dir including batch file fails delete directory, dir. there way while deleting dir also? create batch script reside inside zip file , deletes gets created unzipping file. above command still leaves behind empty directory.

what following?

cd .. rmdir .\dir /s /q & exit 

you can't delete directory occupied running process.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -