Sign in to follow this  
Followers 0
Msmith

Startup Script Error

3 posts in this topic

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)

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

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.

 

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  
Followers 0