Jump to content

Windows 7 Script problem


jfuller
 Share

Recommended Posts

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.
Link to comment
Share on other sites

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...