Jump to content
Sign in to follow this  
jfuller

Windows 7 Script problem

Recommended Posts

jfuller

Hello Guys,

I have created a script to run a .exe file, The script complies and when ran on the Target pc, Only message I get is from Windows 7 asking if the program installed correctly. However the .exe is never called. This script works on windows xp computers, just not for windows 7.

; Fill in the username and password appropriate for your system.
Local $sUserName = "na"
Local $sPassword = "na"
 
; Application name
Local $Application = "C:UsersPublicDocumentsstart.exe"
 
; Create command line and call RunAs
Local $Command = $Application
Local $pid = RunAsWait($sUserName, @ComputerName, $sPassword, 0, $Command)
 
Anyone have any ideas? I am sorta new to Scripting and not sure why this will not work.

Share this post


Link to post
Share on other sites
gruntydatsun

is the secondary login service running on the target machine?

Share this post


Link to post
Share on other sites
gruntydatsun

does start.exe touch any files that do not have fully qualified file paths   like (run thisprog.exe) assuming the same path as the executable start.exe?   because you don't have a working path in your run statement it'll default to c:windowssystem32.  Hope this helps. 

What does start.exe actually do?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×