1. Change Restore Settings in XP Pro ?
- Posted by Al Getz <Xaxo at aol.com> Jun 02, 2007
- 683 views
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. Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."
2. Re: Change Restore Settings in XP Pro ?
- Posted by jxliv7 <jxliv7 at hotmail.com> Jun 02, 2007
- 615 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
3. Re: Change Restore Settings in XP Pro ?
- Posted by don cole <doncole at pacbell.net> Jun 02, 2007
- 618 views
- Last edited Jun 03, 2007
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. > > > Al > > E boa sorte com sua programacao Euphoria! > > > My bumper sticker: "I brake for LED's" > Hello Al. All I know is that restore looks at what's in Volume Information a hidden file in c:\windows/system or c:\windows/system32 I forget which. If you get a virus in VI then every time you restart the virus comes back. I had that problem. Solution delete VI. I don't know if that has anything to do with your question. Don Cole
4. Re: Change Restore Settings in XP Pro ?
- Posted by Al Getz <Xaxo at aol.com> Jun 04, 2007
- 644 views
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. Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."
5. Re: Change Restore Settings in XP Pro ?
- Posted by jxliv7 <jxliv7 at hotmail.com> Jun 04, 2007
- 615 views
sorry, Al, but i didn't find any short reads. looking up article 315530 at microsoft.com definitely details the API. using the API, even if it is described for C++, is still windows programming, and Euphoria speaks Windows. and in the middle of this link http://msdn.microsoft.com/msdnmag/issues/01/12/XPKernel/default.aspx you will find several paragraphs about restore. maybe you should log into the MS develpers forums and ask them. -- jon
6. Re: Change Restore Settings in XP Pro ?
- Posted by Bernie Ryan <xotron at bluefrog.com> Jun 04, 2007
- 631 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. > > > Al > > E boa sorte com sua programacao Euphoria! > > > My bumper sticker: "I brake for LED's" > Al: Here is some info on changing the registery but there are some posts out on the web that say they could not get these to change things. http://support.microsoft.com/default.aspx?scid=kb;en-us;q295659 Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
7. Re: Change Restore Settings in XP Pro ?
- Posted by don cole <doncole at pacbell.net> Jun 04, 2007
- 657 views
- Last edited Jun 05, 2007
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