Question

Locked

search & deleting speficic file type on Windows Startup

By thienhop ·
Dear Experts,

May I know how to write a script that can automatically search & delete specific file type on Windows Startup?

Any advice is higly appreciated.

Thanks a lot,

Hop

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

See if this will help

by Jacky Howe In reply to search & deleting spefici ...

Create a Batch File and place it in the Root Directory of the folders that you want it to search. Be very careful of what you have as the extension and where you place the file. You can have it look for a particular file EG: VIRUS.exe
<br>
The batch file below will search the directory and sub directories looking for files with the .mp3 extension deleting them quietly and forcefully.
<br>
@echo off<br>
del /s /q /f *.mp3
<br><br>
<i>Keep us informed as to your progress if you require further assistance.</i>
<br><br>
<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
</i>

Back to Software Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums