| 1. |
Solve : How to delete a file by searching for part of the file name?? |
|
Answer» I would like to delete a file by searching for part of the file name. (Example: Test.txt, test123.txt, testing123.txt) I would like to delete anything that has "test" in the file name.your examples show that the filename always starts with test but your description says "in" the filename. So does 123testing.txt qualify as well.Thank you for your reply. "123test" will qualify as well, but most likely won't have a file like that. This is just an example, but not the real file that I'm trying to remove. This is the script that I currently have, but I'm LOOKING for the variables that the file may have in it. There are certain cases where there is random text after "ALLDATA Repair - ". I need to search for "ALLDATA Repair - " on the desktop that is a .url file. Your help is much appreciated. There are certain cases where there is random text after "ALLDATA Repair - ". I need to search for "ALLDATA Repair - " on the desktop that is a .url file. Try this" del /Q "%userprofile%\Desktop\ALLDATA Repair - *.url" Thank you Foxidrive, this worked! |
|