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
Post a Comment