Scripting

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
Post Reply
Message
Author
GTech
Posts: 1
Joined: 15 May 2014, 13:50

Scripting

#1 Post by GTech » 16 May 2014, 12:55

Hello everyone. I was trying to script shortcuts in my winfe environment to do different tasks like for example grab all docs and photos from a hard drive. My question is how do I tell it to look at all the drives on them machine except itself. I want to get it to the point where I can just boot in to WinFE\PE and just click a list of choises of shortcuts and move on to something else. This is what I have so far but I’m not sure it will work. It looks like the hd is always showing up as dev/sda and the USB that is running WinFE is Sdb but can someone confirm this. Also any advice on the scripting would be great. I haven’t tested this yet so there may be other tweaks that need to be made.

photorec_win /d C:\Recover\Files /cmd DEVICE=/dev/sda options,keep_corrupted_file,paranoid_bf,fileopt,everything,enable,wholespace,search

Sponsored links

User avatar
cgrenier
Site Admin
Posts: 4425
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Scripting

#2 Post by cgrenier » 18 May 2014, 16:21

Well, it's usually better to use PhotoRec partition by partition because the filesystems may have different blocksize /different offset.
The number of partitions and harddisks may vary.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest