How could XYplorer be set to run Windows Restauration Point?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

How could XYplorer be set to run Windows Restauration Point?

Post by cadu »

Thanks!

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

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

Post by serendipity »

Do you want to open system restore window or you want to create a restore point?

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

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

Post by cadu »

I would say both!

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

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

Post 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

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

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

Post by cadu »

Thanks. I will try it!

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

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

Post 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?
To see the attached files, you need to log into the forum.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

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

Post 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?

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

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

Post 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...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

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

Post 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?

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

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

Post by cadu »

Windows 7 - 64 bit

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

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

Post 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.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

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

Post 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";

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

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

Post 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...
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66365
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »


Post Reply