Tech Support Guy banner
Status
Not open for further replies.
1 - 6 of 6 Posts

·
Registered
Joined
·
162 Posts
Discussion Starter · #1 ·
is there a command available ? my workaround is to rename donotdelete.exe to donotdelete.bat; run a batch file to delete all *.exe and then rename donotdelete.bat to donotdelete.exe is there a more elegant solution ? tia
 

·
Registered
Joined
·
619 Posts
maybe use the /a switch after using the proper attrib command to set the attributes to suit your purpose??
 

·
Registered
Joined
·
162 Posts
Discussion Starter · #6 ·
for %%i in (*.exe) do if not "%%i"=="Downloader.exe" del /q "%%i" I simply put the above in the directory and all exe files are deleted except for Downloader.exe
 
1 - 6 of 6 Posts
Status
Not open for further replies.
Top