Solved

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

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

Suggested Solutions

Title # Comments Views Activity
How to share My.Settings in multiple application instances ? 7 79
Need help Creating PowerShell Script 4 67
IDE for Python 5 109
How to fix error "424" object required. 6 65
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

710 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