recover MS Internet Shortcut .url files ONLY

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
geeksalive
Posts: 3
Joined: 05 Mar 2013, 19:48

recover MS Internet Shortcut .url files ONLY

#1 Post 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

Locked