Solved

Request input on a VB script

Posted on 2007-03-27
2
186 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

778 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