andreas1234
Goto Top

Systemwiederherstellungspunkt Batch

Hi alle miteinander,

ich hab mit Autoit ein Programm geschrieben, dass Windows XP optimieren. (Ich hab mein eigenes geschrieben weil ich von TuneUp etc. nix halt).
Nun hab ichs ausprobiert und festgestellt dass manche Sachen nicht mehr richtig funktionieren.
Also möchte ich einen Systemwiederherstellungspunkt erstellen bevor das Programm gestartet wird.
Mit AutoIt geht das glaub ich nicht.
Aber mit der CMD geht das doch bestimmt.
Google hat mir auch nicht geholfen.
Die Exe für die Systemwiederherstulung liegt unter C:\WINDOWS\system32\Restore\rstrui.exe. Ich kann aber keine Parameter mitgeben. (bzw. ich kann schon aber es bringt nichts)

Kann mir irgendjemand vllt helfen?
Schon mal vielen Dank im vorraus,
Andreas

Content-Key: 162643

Url: https://administrator.de/contentid/162643

Printed on: April 23, 2024 at 17:04 o'clock

Member: thaenhusen
thaenhusen Mar 15, 2011 at 08:11:54 (UTC)
Goto Top
Moin.

Per batch geht das nicht.

Hilft Dir das http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=38387 ... ?

HTH
MK
Member: AndreasHoster
AndreasHoster Mar 15, 2011 at 08:12:38 (UTC)
Goto Top
Ein bischen Googeln führt zu: http://www.techrepublic.com/article/10-things-you-should-know-about-win ...
Und dort findet man:
#7: Bypassing the System Restore Wizard


If you want to be able to manually create a restore pointwithout having to go through the wizard, you can create a simple two-lineVBScript file that uses WMI (Windows Management Instrumentation) to instantlycreate a restore point. Just launch Notepad and type these two lines:

Set IRP =getobject("winmgmts:\\.\root\default:Systemrestore")

MYRP = IRP.createrestorepoint ("My Restore Point", 0, 100)

Then, save the file as MyRestorePoint.vbs. Now, you can easilycreate an restore point by double-clicking the script's icon. When you do,System Restore will run in the background without displaying its interface andwill create a restore point called MyRestore Point.
Member: andreas1234
andreas1234 Mar 15, 2011 at 08:30:20 (UTC)
Goto Top
Ahh thx ja hat mir geholfen.
Obwohl ich kein Visual Basic kann :D