Page 1 of 1

recover MS Internet Shortcut .url files ONLY

Posted: 05 Mar 2013, 21:36
by geeksalive
When I run photorec_win.exe (PhotoRec 6.14-WIP, Data Recovery Utility, March 2013), and look through the list of available file-types, .url files are not listed by themselves:

Code: Select all

...
 [ ] txt  Other text files: txt,html,asp,bat,C,jsp,perl,php,py/emlx... scripts
 [ ] tz   Timezone info
 [ ] v2i  v2i backup
 [ ] vault McAfee Anti-Theft/FileVault
...
Instead, there is:

Code: Select all

[ ] tx?  Text files with header: rtf,xml,xhtml,mbox/imm,pm,ram,reg,sh,slk,stp,jad,url
Unfortunately, recovering all those file types finds a LOT of useless Internet temporary files, perhaps even too many to fit on the destination flash drive. How can I recover just the lost .url files using PhotoRec?

Right now I'm looking at running a "cleanup" script in another window, but there must be a better way:

Code: Select all

:top
sweep32 del /q *.h*
@REM -- ping is used to insert a 1 second delay
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.j*
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.x*
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.m*
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.s*
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.r*
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.a*
ping -n 2 127.0.0.1 >nul
sweep32 del /q *.p*
ping -n 2 127.0.0.1 >nul
ping -n 2 127.0.0.1 >nul
ping -n 2 127.0.0.1 >nul
goto top
Dave