Re: Change Restore Settings in XP Pro ?
- Posted by jxliv7 <jxliv7 at hotmail.com> Jun 02, 2007
- 616 views
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 http://technet.microsoft.com/en-us/library/d6ee5a4b-8f43-f34f-932c-13da574afad5.aspx there's more info at http://msdn.microsoft.com/msdnmag/issues/01/12/XPKernel/default.aspx finally, i think there's some infor in this forum https://forums.microsoft.com/msdn/showforum.aspx?forumid=6&siteid=1 hope that helps. -- jon