Jump to content

Startup Script Error


Msmith
 Share

Recommended Posts

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)

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

 

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...