Hello all,
Not sure if this is the first time asked but a search did not give me an answer. The scenario is very simple, I have a list of filenames in Excel and I want to delete these files from a specific directory.
I can copy this list to a text file no problem. I just can't seem to find how to use this list as input to have the files deleted.
Is there a fast way of doing this?
Regards,
RolandD
Delete files using a list
Moderators: white, Hacker, petermad, Stefan2
Delete files using a list
Registered user #92105
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
2rolandd
That's easy:
1. Bind the first command to a hotkey.
2. Open your xls file (works with any text file too, of course).
3. Select needed filenames and copy the entries.
4. Goto TC and use the hotkey.
5. Files get selected, you are to press F8 or something.
The second command will work only with long names in text files.
That's easy:
1. Bind the first command to a hotkey.
2. Open your xls file (works with any text file too, of course).
3. Select needed filenames and copy the entries.
4. Goto TC and use the hotkey.
5. Files get selected, you are to press F8 or something.
The second command will work only with long names in text files.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
You can use TcBatLnc http://www.geocities.com/nospam0123456/forTC
TCBLnch.exe ListFile.txt del $f
If you want to automate From a result file to a target folder inside TC :
you can use a button ::
command TCBLnch.exe
parameter -q %P\%N del "%T\$f"
if you want you can also create a cmd file like :
you can use as DelList.cmd FileList.txt FolderToDelete
------- BEG of DelList.cmd
@CHCP 1252
@FOR /F "delims=" %%i in (%1) DO del "%2\%%i"
-------- End Of DelList.cmd
TCBLnch.exe ListFile.txt del $f
If you want to automate From a result file to a target folder inside TC :
you can use a button ::
command TCBLnch.exe
parameter -q %P\%N del "%T\$f"
if you want you can also create a cmd file like :
you can use as DelList.cmd FileList.txt FolderToDelete
------- BEG of DelList.cmd
@CHCP 1252
@FOR /F "delims=" %%i in (%1) DO del "%2\%%i"
-------- End Of DelList.cmd