Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



W2003 running .bat/.cmd Service ?

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-02-2005
Pekka I.
 
Posts: n/a
W2003 running .bat/.cmd Service ?

Main problem; trying to start .bat or .cmd files as a Service.

No matter how I install the service (with INSTSRV & ANYSRV) and tweaking
registry, I still get error "Could not start the TEST service on Local
computer. Error 1053..." while starting the service. And Allow service to
interact with desktop has been set on/off, no affect... Help pls.

What am I doing wrong and how should I do it ?



Reply With Quote
  #2  
Old 22-02-2005
Dave Patrick
 
Posts: n/a
Re: W2003 running .bat/.cmd Service ?

This may help.

http://support.microsoft.com/default.aspx?scid=kb;[LN];243486

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Pekka I." wrote:
| Main problem; trying to start .bat or .cmd files as a Service.
|
| No matter how I install the service (with INSTSRV & ANYSRV) and tweaking
| registry, I still get error "Could not start the TEST service on Local
| computer. Error 1053..." while starting the service. And Allow service to
| interact with desktop has been set on/off, no affect... Help pls.
|
| What am I doing wrong and how should I do it ?
|
|


Reply With Quote
  #3  
Old 22-02-2005
Dave Patrick
 
Posts: n/a
Re: W2003 running .bat/.cmd Service ?

This may help.

http://support.microsoft.com/default.aspx?scid=kb;[LN];243486

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Pekka I." wrote:
| Main problem; trying to start .bat or .cmd files as a Service.
|
| No matter how I install the service (with INSTSRV & ANYSRV) and tweaking
| registry, I still get error "Could not start the TEST service on Local
| computer. Error 1053..." while starting the service. And Allow service to
| interact with desktop has been set on/off, no affect... Help pls.
|
| What am I doing wrong and how should I do it ?
|
|


Reply With Quote
  #4  
Old 22-02-2005
Tim Net
 
Posts: n/a
Re: W2003 running .bat/.cmd Service ?

Firedaemon can run the .BAT for you, but is not free.
Consider compiling the logic into an .EXE using AutoIT from
www.hiddensoft.com.

For example, here's some AutoIT Version3 code for a goofy service:


AutoItSetOption("WinTitleMatchMode", 2)
do
WinWait ("Microsoft")
TrayTip ( "Note for you","Microsoft is for girly men",10,17)
sleep (5000)
TrayTip ( "","",10,17)
do
sleep (3000)
$msft = WinExists ("Microsoft")
until $msft == 0
until 1=0


I named it Watch_my_titles.au3 and then compiled it as Watch_my_titles.exe.
I then put the file in "D:\Flat\Desktop Junk\aUTOit\Making a service\" with
instsrv.exe and srvany.exe.

On the DOS prompt, I ran:
instsrv.exe Watch_my_titles "D:\Flat\Desktop Junk\aUTOit\Making a
service\srvany.exe"

Lastly, configured the registry by adding:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Watch_my_titles\Parameters]
"Application"="D:\\Flat\\Desktop Junk\\aUTOit\\Making a
service\\Watch_my_titles.exe"
"AppParameters"=""
"AppDirectory"="D:\\Flat\\Desktop Junk\\aUTOit\\Making a service"

I want it to interact with the desktop, so I opened the services control
panel(Services.msc) and tabbed to
the Logon tab and checked "Allow service to interact with desktop".

HTH.

Tim Net




"Dave Patrick" <mail@Nospam.DSPatrick.com> wrote in message
news:%23cWKFsFGFHA.1836@tk2msftngp13.phx.gbl...
> This may help.
>
> http://support.microsoft.com/default.aspx?scid=kb;[LN];243486
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Pekka I." wrote:
> | Main problem; trying to start .bat or .cmd files as a Service.
> |
> | No matter how I install the service (with INSTSRV & ANYSRV) and tweaking
> | registry, I still get error "Could not start the TEST service on Local
> | computer. Error 1053..." while starting the service. And Allow service
> to
> | interact with desktop has been set on/off, no affect... Help pls.
> |
> | What am I doing wrong and how should I do it ?
> |
> |
>
>



Reply With Quote
  #5  
Old 22-02-2005
Tim Net
 
Posts: n/a
Re: W2003 running .bat/.cmd Service ?

Firedaemon can run the .BAT for you, but is not free.
Consider compiling the logic into an .EXE using AutoIT from
www.hiddensoft.com.

For example, here's some AutoIT Version3 code for a goofy service:


AutoItSetOption("WinTitleMatchMode", 2)
do
WinWait ("Microsoft")
TrayTip ( "Note for you","Microsoft is for girly men",10,17)
sleep (5000)
TrayTip ( "","",10,17)
do
sleep (3000)
$msft = WinExists ("Microsoft")
until $msft == 0
until 1=0


I named it Watch_my_titles.au3 and then compiled it as Watch_my_titles.exe.
I then put the file in "D:\Flat\Desktop Junk\aUTOit\Making a service\" with
instsrv.exe and srvany.exe.

On the DOS prompt, I ran:
instsrv.exe Watch_my_titles "D:\Flat\Desktop Junk\aUTOit\Making a
service\srvany.exe"

Lastly, configured the registry by adding:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Watch_my_titles\Parameters]
"Application"="D:\\Flat\\Desktop Junk\\aUTOit\\Making a
service\\Watch_my_titles.exe"
"AppParameters"=""
"AppDirectory"="D:\\Flat\\Desktop Junk\\aUTOit\\Making a service"

I want it to interact with the desktop, so I opened the services control
panel(Services.msc) and tabbed to
the Logon tab and checked "Allow service to interact with desktop".

HTH.

Tim Net




"Dave Patrick" <mail@Nospam.DSPatrick.com> wrote in message
news:%23cWKFsFGFHA.1836@tk2msftngp13.phx.gbl...
> This may help.
>
> http://support.microsoft.com/default.aspx?scid=kb;[LN];243486
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Pekka I." wrote:
> | Main problem; trying to start .bat or .cmd files as a Service.
> |
> | No matter how I install the service (with INSTSRV & ANYSRV) and tweaking
> | registry, I still get error "Could not start the TEST service on Local
> | computer. Error 1053..." while starting the service. And Allow service
> to
> | interact with desktop has been set on/off, no affect... Help pls.
> |
> | What am I doing wrong and how should I do it ?
> |
> |
>
>



Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "W2003 running .bat/.cmd Service ?"
Thread Thread Starter Forum Replies Last Post
WDDM service not running Dorothy Gale Windows Software 5 11-04-2011 06:21 AM
net logon service not running Russyan Active Directory 6 04-01-2010 04:09 PM
the audio service is not running mahall1988 Vista Help 23 19-07-2008 05:48 AM
Computer Migration, w2003-w2003, ADMT v3 Francisco Vaz Windows Server Help 4 23-01-2008 09:05 PM
windows wireless service -- not running DWD Vista Help 2 16-11-2007 04:55 PM


All times are GMT +5.5. The time now is 11:18 AM.