Scripting with Photorec on Windows 10: Foward or back slash?

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
europa
Posts: 1
Joined: 16 Feb 2020, 16:05
Contact:

Scripting with Photorec on Windows 10: Foward or back slash?

#1 Post by europa »

Hi,

Im trying to create a script that recovers files in Windows using Photorec.

Should I use foward slash or back slash for the paths in Windows?

Foward slash

Code: Select all

photorec_win.exe /debug /log /logname file.log /d C:/Users/user/Documents/cases/1568795/QuickImageForensicsWPF/1568795_2020_5060_90_1_sofias_pc/photorec /cmd C:/Users/user/Documents/image_files/1568795/1568795_2020_5060_90_1_sofias_pc/1568795_2020_5060_90_1_sofias_pc.001 search
Back slash

Code: Select all

photorec_win.exe /debug /log /logname file.log /d C:\Users\user\Documents\cases\1568795\QuickImageForensicsWPF\1568795_2020_5060_90_1_sofias_pc\photorec /cmd C:\Users\user\Documents\image_files\1568795\1568795_2020_5060_90_1_sofias_pc\1568795_2020_5060_90_1_sofias_pc.001 search

Locked