Solved

vb script error  - how to run exe file from remote share

Posted on 2014-09-11
2
276 Views
Last Modified: 2014-09-13
hi i write a little script that should run i quit mode and no restart flag
but it dont work like i want

on error resume next

Dim objShell

Dim objEnv

Set objEnv = objShell.Environment("PROCESS")

Set objShell = WScript.CreateObject ("WScript.Shell")

objEnv("SEE_MASK_NOZONECHECKS") = 1

objShell.Run """\\ServerName\install$\Programs Install\Servers\TSM\Prerequisites\vcredist_x86_2010.exe""" & "/q" & "/norestart"

objEnv.Remove("SEE_MASK_NOZONECHECKS")


Thx

David
0
Comment
Question by:David Regev
2 Comments
 
LVL 21

Expert Comment

by:Randy Poole
ID: 40317733
Try this:
objShell.Run """\\ServerName\install$\Programs Install\Servers\TSM\Prerequisites\vcredist_x86_2010.exe /q /norestart"""

Open in new window

0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 40318271
Or this should work as well
objShell.Run """\\ServerName\install$\Programs Install\Servers\TSM\Prerequisites\vcredist_x86_2010.exe"" /q /norestart"

Open in new window


Rob.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now