Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Customization / October 2007

Tip: Looking for answers? Try searching our database.

vbs statement doesn't execute

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bretsharon - 29 Oct 2007 18:41 GMT
Can anyone tell me why the following gets error messages and won't execute?
rp = "Scripted Restore Point by " & WScript.ScriptName GetObject
("winmgmts:\\.\root\default:Systemrestore").CreateRestorePoint rp, 0, 100
Claymore - 30 Oct 2007 04:02 GMT
On Oct 29, 1:41 pm, bretsharon <bretsha...@discussions.microsoft.com>
wrote:
> Can anyone tell me why the following gets error messages and won't execute?
> rp = "Scripted Restore Point by " & WScript.ScriptName GetObject
> ("winmgmts:\\.\root\default:Systemrestore").CreateRestorePoint rp, 0, 100

This one works:

Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Manual Restore Point", 0, 100)
bretsharon - 30 Oct 2007 05:57 GMT
Nothing happens.  I copied the command into vbs file. ??
Ramesh, MS-MVP - 30 Oct 2007 07:16 GMT
See if a System Restore point is created, with the name "Manual Restore Point".

Signature

Regards,

Ramesh Srinivasan, Microsoft MVP  [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com

Nothing happens.  I copied the command into vbs file. ??
bretsharon - 30 Oct 2007 12:13 GMT
You are correct.  Thank you!!

> See if a System Restore point is created, with the name "Manual Restore Point".
>
> Nothing happens.  I copied the command into vbs file. ??
Ramesh, MS-MVP - 30 Oct 2007 16:07 GMT
You're welcome!

Signature

Regards,

Ramesh Srinivasan, Microsoft MVP  [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com

You are correct.  Thank you!!

"Ramesh, MS-MVP" wrote:

> See if a System Restore point is created, with the name "Manual Restore Point".
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.