Msmith Posted February 13, 2008 Posted February 13, 2008 hi all i have a script in the all users startup folder that calls an external program. About 30% of the time I get the following error. error: unable to execute the external program. An instance of the service is already running. I checked taskmanger just to see and there is no other instance running. thanks mike My Script $var1 = "bginfo.exe " & '"C:\Program Files\BgInfo\inventory.bgi" ' & "/timer:0 /silent /nolicprompt" RunAsSet('user1', 'server1', 'passwdrd1', 2) Run($var1, "C:\Program Files\BgInfo", @SW_MINIMIZE)
Zedna Posted February 13, 2008 Posted February 13, 2008 To be sure try absolute path to EXE: $var1 = '"C:\Program Files\BgInfo\bginfo.exe" ' & '"C:\Program Files\BgInfo\inventory.bgi" ' & "/timer:0 /silent /nolicprompt" RunAsSet('user1', 'server1', 'passwdrd1', 2) Run($var1, "C:\Program Files\BgInfo", @SW_MINIMIZE) Resources UDF ResourcesEx UDF AutoIt Forum Search
GaryFrost Posted February 13, 2008 Posted February 13, 2008 Don't need all the &'s in there in the string $var1 = '"C:\Program Files\BgInfo\bginfo.exe" "C:\Program Files\BgInfo\inventory.bgi" /timer:0 /silent /nolicprompt' SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now