Trying to setup a Windows service, using sc.exe (resource kit) that will call a .bat file.
The bat file performs the following:
- Starts 3 Windows services (they have to be started in a particular order) via net start
- maps a network drive to k:
When I try to start the service via "Services" I receive the error "The service did not respond to the start or control request in a timely fashion." and nothing happens.
I used the following command to create it:
sc create ServiceName binPath= c:\winnt\drivemap.bat type= own start= auto
What am I doing wrong?
The bat file performs the following:
- Starts 3 Windows services (they have to be started in a particular order) via net start
- maps a network drive to k:
When I try to start the service via "Services" I receive the error "The service did not respond to the start or control request in a timely fashion." and nothing happens.
I used the following command to create it:
sc create ServiceName binPath= c:\winnt\drivemap.bat type= own start= auto
What am I doing wrong?