Solved

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

Posted on 2014-09-11
2
275 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
A short article about problems I had with the new location API and permissions in Marshmallow
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

747 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

14 Experts available now in Live!

Get 1:1 Help Now