Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to write a program to recover recently deleted files on windows 7..
Is there a function in windows API that recover files? If not, how can I begin in that?
EDIT:
Or an open source project for that?
EDIT:
I do not mean Recycle Bin!!
Well the file recovery tools all start by scanning the disk for file headers or for old traces of the file tree.
Looking to do this from scratch you need to understand your target drive and its file system. There is no API so to say, though there are projects that deal with accessing the NTFS file system directly from linux, though it sounds like you are developing in Windows. They are listed at the end of the Wiki link in my post. I have some links that will access the drive directly. From there you can t,ry to detect old files though any means you could derive from the NTFS Journal, Log or other component of the FS.
Assuming you want to use Windows 7 and will be running your program in the OS take a look these links:
Direct Drive Access
Create File
Wikipedia Article on NTFS (The file system Windows 7 uses) Check the external links
What your looking to write is no trivial task, though that's what makes it interesting.
Do you mean files deleted (moved to trash) or removed from the hdd (marked for replacement)? If you're looking for the second option, I'm quite sure Windows do not offer any solution to that.
You will have to analyze the data on the disk manually, i.e. by reading the raw disk content and looking for files which are marked as deleted.
A good start would be reading into the internals of the filesystem(s) you want to support since you will need them. There is no API for that.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am trying to save some important files from my faulty internal hard drive on my iMac. I am in the Internet Recovery mode and running the terminal. I also have connected an external 1TB storage and I can view the files inside it using the terminal. However, I cannot seem to write anything on the external drive as I get the message
cp: volumes/seagatedrive/backup.dmg: Read-only file system
I have used the chmod 777 command for my seagatedrive to no avail. The message I get there is:
Unable to change file mode on volumes/seagatedrive: Read-only file
system
How can I make my external hard drive (seagatedrive above) writable?
Would appreciate any help.
UPDATE
OP has stated, that his drive is formatted as NTFS. therefore you'll need to setup thirdparty drivers to support write-access on that drive.
An article about that can be found here:
http://www.howtogeek.com/236055/how-to-write-to-ntfs-drives-on-a-mac/
[...]
Mac OS X can read from NTFS drives, but it can’t write to them unless you use one of the below tricks. We highly recommend paying for a third-party NTFS driver if you need to do this as the other solutions don’t work as well and are more work to set up.[...]
Alternatively you should consider using exFAT as drive Format. Using
exFAT has the advantage of compatibility on almost all Platforms.
Since I can't put my thoughts in a comment (not enough rep. yet) here is what you can check.
osx behaves strangely with external drives which aren't formatted in Mac OS Format.
check volume's partition-type
check mount tab (if exists)
make shure that your drive isn't write-protected.
if this all fails you could also check, if root has the proper rights to do these previous things.
if so, there might be a problem with your account or privileges on that account.
if there won't be anyone being able to help you, you should try and ask your question on https://unix.stackexchange.com/
cheers and good luck
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I just needed a old file i deleted a few days back and I googled and got pandora recovery tool.
I was wondering how I can recover an item after deleting it from recycle bin.
After i delete a file how can it be restored ?
A delete operation only doesn't remove the files from hard disk but those files are still there until some other file replaces/overwrites the previous file.
A common misconception is that the data is actually removed from the hard drive (erased) when you delete a file. Any time that a file is deleted on a hard drive, it is not erased. Instead, the tiny bit of information that points to the location of the file on the hard drive is erased. This pointer, along with other pointers for every folder and file on the hard drive, is saved in a section near the beginning of the hard drive and is used by the operating system to compile the directory tree structure. By erasing the pointer file, the actual file becomes invisible to the operating system. Eventually, the hard drive will write new data over the area where the old file is located.
There are so many open source software to undelete a file from
MiniTool Power Data Recovery (Free Edition)- http://www.powerdatarecovery.com/download.html
You can recover upto 1 GB
Recuva - http://www.piriform.com/recuva/download
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I use Win7 and usually I put some files on my desktop so that I can access them easily. But I like to backup files on other driver instead of drive C. So I want to find a way that I can put those files on my desktop while they are stored on D drive. Is it possible and how to do? Thanks!
I hope to access them easily: means that they can be saw directly on desktop.
You could tweak registry settings with earlier versions of Windows so that the USER directory is located on other drives: that is no longer the case since Windows 7.
The closest you can come to doing what you want to do is placing your files on the D: drive, and dragging a shortcut onto your Desktop (you can also create a symbolic link to your desktop directory, but that's more trouble, and there's no real advantages).
Perhaps a safer alternative is to use the vanilla Windows functionality, but use one of the online backup services like Mozy to keep the files safe.
You can put the files onto your D drive and right click on each file and click "Send To" then click "Desktop(create shortcut)".
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is it possible to limit a folder size in Windows so that when a user tries to write to the folder when it is full he receives an error message?
Keep in mind that Disk Quotas are per user not per folder, there are other solutions that will allow you to lock down a folder size regardless of user, my experience has been with Veritas Storage Exec, but it seems to be discontinued.
Do you mean disk quotas as described at, e.g. http://www.windowsnetworking.com/articles_tutorials/Configuring-Disk-Quotas-Windows-2003.html?
Have a look at Quotas for NTFS file systems..
The Windows Server 2008 Administrator's Companion recommends using the File Server Resource Manager instead of the older "disk quota" feature since these allow per-directory settings. (I'm not familiar with this tool myself; after 5 mins of playing around with it, I still have no idea how to actually do this. There certainly is a column for "quota", however.)
Another trick is to create a new volume and then use a symbolic link (see MKLINK) to map the directory to that volume. (MKLINK is Vista/2008 and later; for XP/2003 use NTFS junctions.)
It depends on how limiting you want to be. :)
For example, it's not difficult to write a program that listens/monitors a folder and displays a message box error/warning in case the user exceeds his quota. But that doesn't prevent him from exceeding it - just notifies him he did so.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'd like to be able to see what registry keys are used for. A book on the registry would be fine as well. Info on Windows Vista changes would be great!
Oh, how I wish there was a single site where the registry was collectively documented by all who write values there! Keep in mind, any app can create its own set of registry keys and values, so it's not just MS who would be necessary to such an effort. Though they would be a key player!
In the meantime, there are two MS sites I use as startng points when I need to know what a particular key/value pair do:
Windows 2003 registry reference:
http://technet.microsoft.com/en-us/library/cc778196.aspx
Windows 2000 Registry reference:
http://technet.microsoft.com/en-us/library/cc974061.aspx
Keep in mind that since Windows is an evolving thing, even information about older versions can be very helpful. Also note that W2003 bears a lot of resemblance to XP. Sadly, I have not found a link to the Vista/Windows 2008 registries similar to the above.
When you need to know what's up with a specific key, and it's not found in one of the above links, try a search of that key's full path at http://support.microsoft.com
The wikipedia article is actually rather nice. Not a full account of everything, but not too shabby either.
http://en.wikipedia.org/wiki/Windows_Registry
Always look up APIs in the Windows SDK first instead of registry entries first . For example, if you store the path to the user's my document folder (yes it is in registery), your code may break when the user's registery roams to another machine where the user's profile is stored in a different location.
Suggested reading:
The long and sad story of the Shell Folders key
I have used this help file in the past. Very good resource