Solved

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

Posted on 2014-09-11
2
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
Progress

617 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