You could try using the "start" command. Either edit the current bat, or create your own to call it. If you use the /B parameter it should run without creating the window.
http://www.ss64.com/nt/start.html Martin feiKai wrote: > Dears, > > I'm a new Derby user. > > When I clicked startNetworkServer.bat, there's always a comand line > window shows up, so I'm trying to create a windows service to run derby. > > Here I met a problem, when I tried to create a windows service for derby > network server, it showed successed. But when I tried to start it, it > failed. Error code 1053. > > I tried 2 ways to do that. > This is my steps to create Derby service > Way 1: use sc.exe in comand lien > start -> run ->cmd > sc create DerbyNet binpath= > "c:\derby\frameworks\NetworkServer\bin\startNetworkServer.bat" start= auto > when starting this service: Error Code 1053 > > > Way 2: I used instsrv.exe and srvany.exe to create service > start -> run ->cmd > instsrv DerbyNet "c:\srvany.exe" > start -> run ->regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DerbyNet > new a string value: Application > &nbs p; value data: > c:\derby\frameworks\NetworkServer\bin\startNetworkServer.bat > when starting this service: The service started and stoped > > Actually, what I want is to hide the command line window, is there any idea? > > --------------------------- > Have a Nice Day~! > Kevin > > > > ------------------------------------------------------------------------ > 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载! > <http://im.live.cn/messenger.aspx>
