Solved

Request input on a VB script

Posted on 2007-03-27
2
187 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:johndarby
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 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:johndarby
ID: 18818535
The installer doesn't run after the ASR backup completes. Intuitively, it seems this should work, but, who knows?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 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