Daniel Wilson
asked on
System Restore deleted my C Sharp files! -- how to prevent this?
I installed a program on my Windows Vista Business system. It locked the computer up. So I booted into Safe Mode and ran a System Restore to the latest checkpoint ... 5 days ago.
Upon rebooting, I went to My Documents\Visual Studio 2005\Projects\MyProject ... and found that my C# files were gone. 2 days work -- gone.
Since I restored in Safe Mode, I understand that I can't undo the problem. Those files are in the bit bucket.
Now -- how do I prevent this from happening again? System Restore isn't supposed to affect documents, photos, etc. ... but evidently .cs files are considered fair game.
Is it b/c they were under My Documents (where VS throws stuff by default)?
Thanks!
Upon rebooting, I went to My Documents\Visual Studio 2005\Projects\MyProject ... and found that my C# files were gone. 2 days work -- gone.
Since I restored in Safe Mode, I understand that I can't undo the problem. Those files are in the bit bucket.
Now -- how do I prevent this from happening again? System Restore isn't supposed to affect documents, photos, etc. ... but evidently .cs files are considered fair game.
Is it b/c they were under My Documents (where VS throws stuff by default)?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No worries,
BUT from what I read in that post, system restore for vista will monitor all directories for extensions listed here (plus a couple of others). http://msdn.microsoft.com/en-us/library/aa378870.aspx
It's easy enough to test, make a c:\programming directory, copy one of your C# projects to that directory, create a restore point, change the project in some way and save it then go back to your restore point.
I think you will find the .CS got rolled back to before your change.
If thats the case you would need to (in my example)
Add a string value to the [HKLM\SYSTEM\CurrentContro lSet\Contr ol\BackupR estore\Fil esNotToBac kup] registry key.
Name it Programming, and the value would be c:\programming\*.* /s
Then reboot so the system restore loads the new values. (I don't know if it's dynamic or not)
From there I would test it again, but from what I've found that should do the trick.
Cheers,
Terry
BUT from what I read in that post, system restore for vista will monitor all directories for extensions listed here (plus a couple of others). http://msdn.microsoft.com/en-us/library/aa378870.aspx
It's easy enough to test, make a c:\programming directory, copy one of your C# projects to that directory, create a restore point, change the project in some way and save it then go back to your restore point.
I think you will find the .CS got rolled back to before your change.
If thats the case you would need to (in my example)
Add a string value to the [HKLM\SYSTEM\CurrentContro
Name it Programming, and the value would be c:\programming\*.* /s
Then reboot so the system restore loads the new values. (I don't know if it's dynamic or not)
From there I would test it again, but from what I've found that should do the trick.
Cheers,
Terry
ASKER
No more development under Documents for me! Not a lesson I'll forget quickly ...