?
Solved

Request input on a VB script

Posted on 2007-03-27
2
Medium Priority
?
194 Views
Last Modified: 2010-04-20
I have a script which I want to run from the Send To menu command. It is designed to cause the OS (Windows XP) to create a Restore Point, then pass the executable (MSI or EXE, usually) for processing.

My end-aim is to have a Send To method to right-click on a install application, create a restore point and then begin application installation. However, I seem to be missing something in passing the "installer" for execution.


Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","Installation Restore Point")
MYRP = IRP.createrestorepoint (strDescription, 0, 100)
WShell.Run(Args.Item(0))
0
Comment
Question by:John Darby
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 18813450
Hi johndarby, intresting question youve got.
Im not sure I completely follow you though.
The problem is in adding to SendTo, or in running the installer?
0
 
LVL 1

Author Comment

by:John Darby
ID: 18818535
The installer doesn't run after the ASR backup completes. Intuitively, it seems this should work, but, who knows?
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question