Re: Change Restore Settings in XP Pro ?
- Posted by don cole <doncole at pacbell.net> Jun 04, 2007
- 656 views
Al Getz wrote: > > jxliv7 wrote: > > > > Al Getz wrote: > > > > > > > > > Anyone know how to programmatically change the 'Restore' settings > > > on XP Pro? This would allow you to change which drive gets > > > included in the 'restore' snap shot...for example, say you have > > > C,D, and E drives being monitored and you only want the E drive > > > to be monitored, you would be able to disable monitoring of > > > C and D via a program. > > > > > > The program or any ideas must be written in Euphoria. > > > > > > > as far as i can tell, there are 2 system restore files in windows, > > c:\windows\system32\restore\rstrui.exe > > & srdiag.exe. > > > > diag tells you what's being monitored, hdd1=on, hdd2=off, hdd3=on, etc. that > > translates to 1,0,1 in the registry. ..\rstrui.exe, 101. and the disk spase > > usage in the registry is ...\rstrui.exe, -2048 (or whatever). > > > > running rstrui.exe from a dos prompt with any command line command only > > brings > > up the restore window. > > > > running srdiag.exe from a dos prompt and a /? brings up the 2 commands > > usable > > and writes some log files in the c:\windows\system32\restore\ directory. > > > > you could probably change things using a macro that manipulates the gui > > window. > > > > > > having said all that, there is a system restore API. > > > > check out article 315530 at microsoft.com. > > > > > > there also appears to be some data in the article > > <a > > href="http://technet.microsoft.com/en-us/library/d6ee5a4b-8f43-f34f-932c-13da574afad5.aspx">http://technet.microsoft.com/en-us/library/d6ee5a4b-8f43-f34f-932c-13da574afad5.aspx</a> > > > > > > there's more info at > > > > <a > > href="http://msdn.microsoft.com/msdnmag/issues/01/12/XPKernel/default.aspx">http://msdn.microsoft.com/msdnmag/issues/01/12/XPKernel/default.aspx</a> > > > > > > finally, i think there's some infor in this forum > > > > <a > > href="https://forums.microsoft.com/msdn/showforum.aspx?forumid=6&siteid=1">https://forums.microsoft.com/msdn/showforum.aspx?forumid=6&siteid=1</a> > > > > > > hope that helps. > > > > > > -- > > jon > > > Hi jon and Don, > > > I guess what i am after is a short read on the subject and hopefully > a few lines that say how to turn on or off a drive from being included > in the restore point. > > A short read is the key here, and BTW jon i couldnt find anything on > the subject in your links...but thanks anyway. > > > Al > > E boa sorte com sua programacao Euphoria! > > > My bumper sticker: "I brake for LED's" > Hello again Al, Should I let System Restore monitor my external drive? It is a bad practice to let System Restore monitor an external drive. By design most external drives are monitored by System Restore. If any changes are made to the external drives files while it is not connected to the system, the next time it’s connected System Restore will find an inconsistency in the SR log and cause all existing restore points to become corrupt and require there deletion. The same can be true if the external drive is powered off while the system is running. A possible work around is to assign a permanent drive letter (the higher in the alphabet the better) to the external drive via Disk Management. To access Disk Management, go to Start - Run and type diskmgmt.msc then press enter. Right-click a partition, logical drive, or volume, and then click Change Drive Letter and Paths. Do one of the following: 1. To assign a drive letter, click Add, click the drive letter you want to use, and then click OK. 2. To modify a drive letter, click it, click Change, click the drive letter you want to use, and then click OK. Reboot the system. Open System Restore and stop monitoring that drive. This should keep System Restore from monitoring that drive, but not always. This from: http://bertk.mvps.org/html/tips.html#DriveLetterMissing Don Cole