UNC path exe open

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
srl2cool
Posts: 3
Joined: Tue Jan 31, 2012 3:46 am

UNC path exe open

Post by srl2cool » Tue Jan 31, 2012 3:46 am

HelloI am trying to write a script that will open up an exe file in a unc path.I have tried many things to try and get it work as seen in the screenshot below.This script will be run on logon for win xp and win 7 machines.

User avatar
srl2cool
Posts: 3
Joined: Tue Jan 31, 2012 3:46 am

UNC path exe open

Post by srl2cool » Tue Jan 31, 2012 3:46 am

HelloI am trying to write a script that will open up an exe file in a unc path.I have tried many things to try and get it work as seen in the screenshot below.This script will be run on logon for win xp and win 7 machines.

User avatar
srl2cool
Posts: 3
Joined: Tue Jan 31, 2012 3:46 am

UNC path exe open

Post by srl2cool » Tue Jan 31, 2012 3:56 am

Almost forgot I checked NTFS and share permissions and they are both full control.

User avatar
jvierra
Posts: 13394
Joined: Tue May 22, 2007 9:57 am
Contact:

UNC path exe open

Post by jvierra » Tue Jan 31, 2012 5:16 am

Yuo need to quote teh path because it has spaces and other illegal characters in it. Using [] can create issues in some instances.

Share permissions should be set to only 'read' or the executables can be altered by viruses and trojans.

On a share 'read' is 'read and execute'

User avatar
jvierra
Posts: 13394
Joined: Tue May 22, 2007 9:57 am
Contact:

UNC path exe open

Post by jvierra » Wed Feb 15, 2012 3:15 am

I found out it it needed quotations.

I think someone posted that here about two weeks ago. Youy must have been asleep for that one.



Locked