Photorec in Scripted Mode won't accept destination

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
macker20
Posts: 1
Joined: 17 Oct 2018, 20:46

Photorec in Scripted Mode won't accept destination

#1 Post by macker20 »

Hi,

I'm using photorec from a bat file and when I set the destination with the /d switch I get "Unable to open file or device Results: No error"

The script looks like this.

Code: Select all

E:\testdisk-7.1-WIP.win64\testdisk-7.1-WIP/photorec_win.exe /cmd /dev/sda /d Results  partition_none,fileopt,everything,disable,jpg,enable,wholespace,search
The results folder is at E:/Results and I'm running in admin mode and from the E: root. I've tried E:/Results/ and E:/Results nothing seems to work. When I use interactive mode I can pick this location without a problem.

Thanks

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

Re: Photorec in Scripted Mode won't accept destination

#2 Post by cgrenier »

Can you try

Code: Select all

E:\testdisk-7.1-WIP.win64\testdisk-7.1-WIP/photorec_win.exe /d Results /cmd /dev/sda partition_none,fileopt,everything,disable,jpg,enable,wholespace,search

Locked