How could XYplorer be set to run Windows Restauration Point?
-
cadu
- Posts: 287
- Joined: 18 Mar 2012 21:50
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How could XYplorer be set to run Windows Restauration Po
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
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
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.cadu wrote:I would say both!
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";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)
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
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
In attached image is the way (as a script) I am trying to implement "restore point" to run from XYplorer.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";
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
It seems right. Are you having problems?cadu wrote:In attached image is the way (as a script) I am trying to implement "restore point" to run from XYplorer.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";
I am afraid it isn't write...
Any tip about the right way?
-
cadu
- Posts: 287
- Joined: 18 Mar 2012 21:50
Re: How could XYplorer be set to run Windows Restauration Po
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...
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
Should have asked before, what's your OS?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...
-
cadu
- Posts: 287
- Joined: 18 Mar 2012 21:50
Re: How could XYplorer be set to run Windows Restauration Po
Windows 7 - 64 bit
-
nas8e9
- Posts: 2232
- Joined: 21 Jun 2008 14:50
Re: How could XYplorer be set to run Windows Restauration Po
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
Can you confirm if this file exists:cadu wrote:Windows 7 - 64 bit
%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
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...
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:
XYplorer Beta Club