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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -