• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 909
  • Last Modified:

testdisk scripts to undelete files

Hello Experts,

I want to undelete files by using testdisk.exe on Windows 7 64bit with scripts.

I checked following web site.
http://www.cgsecurity.org/wiki/Scripted_run

But I cannot know how to undelete files to my destination directory.

I know that I can undelete with CUI and select destination directory. But I want to
do that from my GUI program that run testdisk.exe with command line options.
So I need to run with command line options.

I run like...

testdisk_win.exe /debug /log /cmd /dev/sdd partition_i386,advanced,undelete

But I just got file lists in testdisk.log without undelete itself.

Please advice.
Nobuo Miwa
0
NobMiwa
Asked:
NobMiwa
  • 2
  • 2
1 Solution
 
DavidPresidentCommented:
So are you trying to undelete files from a specific directory?  I don't see how this is possible.  When you delete a file the reference that includes the directory path is blown away.   So if the directory path is gone, then how can you enumerate through a directory in the first place?
0
 
NobMiwaAuthor Commented:
Thank you for reply.

I am trying to undelete from specific device (/dev/sdd) to specific directory
(C:\temp).

Regards,
Nobuo Miwa
0
 
DavidPresidentCommented:
Sorry, the nature of the app and the fact that the output is somewhat free format for undelete pretty much makes it impossible to use a scripting tool.

You're just going to have to modify the source code.  (Which is fully documented and online). it should be pretty painless for somebody to make the changes.  It is complete with makefiles so everything is there to build it on a Windows, Mac, or LINUX box with just the C compiler and appropriate build utilities.
0
 
NobMiwaAuthor Commented:
Hello dlethe,

Okay, I will check source code of testdrive.

Thank you for advice.
 Nobuo Miwa
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now