Page 1 of 1

How could XYplorer be set to run Windows Restauration Point?

Posted: 22 Mar 2012 01:26
by cadu
Thanks!

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 22 Mar 2012 02:42
by serendipity
Do you want to open system restore window or you want to create a restore point?

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 22 Mar 2012 13:34
by cadu
I would say both!

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 22 Mar 2012 16:09
by serendipity
cadu wrote:I would say both!
OK. XY does not have those explicitly, it will just make use of shell commands like run or something similar to use already available methods.
For example to open system restore one would call rstrui.exe from Start>Run. In XY it would be:

Code: Select all

//Open system restore window
   run "rstrui.exe";
For creating a system restore point itself is two steps.
1) Create a new vbs script by pasting following text into a text file and save it restorepoint.vbs:

Code: Select all

Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","My Restore Point")
MYRP = IRP.createrestorepoint (strDescription, 0, 100)
2) Call restorepoint.vbs by using run:

Code: Select all

//Create restore point
   run """wscript.exe"" ""C:\Users\abid\Desktop\restore.vbs""";

This script works out of the box:

Code: Select all

//Create Restore Point
//Will write a small vbs script to XY's scripts folder. You change the $pathtovbs below

 $pathtovbs="<xyscripts>";

 $vbs=<<<VBSSCRIPT
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","My Restore Point")
MYRP = IRP.createrestorepoint (strDescription, 0, 100)
VBSSCRIPT;

  writefile ("$pathtovbs\restorepoint.vbs", "$vbs","n", "t");
  wait(1000);
  run """wscript.exe"" ""$pathtovbs\restorepoint.vbs""";

Source for the script: http://filext.com/faq/set_system_restore_point.php

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 22 Mar 2012 21:11
by cadu
Thanks. I will try it!

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 22 Mar 2012 22:40
by cadu
serendipity wrote=>For example to open system restore one would call rstrui.exe from Start>Run. In XY it would be:
Code:
//Open system restore window
run "rstrui.exe";
In attached image is the way (as a script) I am trying to implement "restore point" to run from XYplorer.

I am afraid it isn't write...

Any tip about the right way?

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 22 Mar 2012 23:32
by serendipity
cadu wrote:
serendipity wrote=>For example to open system restore one would call rstrui.exe from Start>Run. In XY it would be:
Code:
//Open system restore window
run "rstrui.exe";
In attached image is the way (as a script) I am trying to implement "restore point" to run from XYplorer.

I am afraid it isn't write...

Any tip about the right way?
It seems right. Are you having problems?

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 01:14
by cadu
It didn't run.
I found the file in system folder to add by browse.
But it wasn't there. If I open through Windows explorer it is there.
Strange...

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 01:49
by serendipity
cadu wrote:It didn't run.
I found the file in system folder to add by browse.
But it wasn't there. If I open through Windows explorer it is there.
Strange...
Should have asked before, what's your OS?

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 12:19
by cadu
Windows 7 - 64 bit

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 13:44
by nas8e9
rstrui.exe is located in %WinDir%\System32, which wreaks havoc with WOW64 Redirection. Some quick experiments with the Sysnative alias got me nowhere, unfortunately.

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 15:49
by serendipity
cadu wrote:Windows 7 - 64 bit
Can you confirm if this file exists:
%winsysdir%/rstrui.exe

If so, try this:

Code: Select all

//Open System restore
   run "%winsysdir%/rstrui.exe";

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 20:25
by cadu
Much strange!

I can see and run the file "rstrui.exe" and others through windows explorer.

I can't see through XYplorer (it seems the script doesn't act because that).

Even browsing through XYplorer doesn't give me access to this file (attached image shows that).

XYplorer is set to show hide files...

Re: How could XYplorer be set to run Windows Restauration Po

Posted: 23 Mar 2012 20:55
by admin