Solved

testdisk scripts to undelete files

Posted on 2013-06-04
4
849 Views
Last Modified: 2013-06-04
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
Comment
Question by:NobMiwa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 47

Expert Comment

by:dlethe
ID: 39220566
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
 

Author Comment

by:NobMiwa
ID: 39220853
Thank you for reply.

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

Regards,
Nobuo Miwa
0
 
LVL 47

Accepted Solution

by:
dlethe earned 500 total points
ID: 39221044
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
 

Author Closing Comment

by:NobMiwa
ID: 39221081
Hello dlethe,

Okay, I will check source code of testdrive.

Thank you for advice.
 Nobuo Miwa
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
If you ever consider purchasing any Daossoft Software Products, DON'T expect any meaningful support - This article should convince you why!
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question