Jump to content

Recommended Posts

This work but not as i want.

it starts but i would like to wait for network to start before starting the service..

_Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"')

So i did this and every thing looks ok? "dependences" look exacly like for exampel "uvnc_service" (remote control app) so it should wait for tcpip before started..

_Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"',Default,Default,"Tcpip")

but this wont start, it says Error 1075: u could not start the service "test1" on local computer the depending service dosent exist or is marked for removel.

//Pleace help a NoOb :graduated:

Link to post
Share on other sites

Isn't there a delayed start option in services? Is there any way to apply that to your script? Either that or implement your own loop that checks for a successful ping to a server or something would be one method perhaps.

Edited by Morthawt
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...