installing interactive service


i have application bundles tomcat. instead of using tomcat startup.bat want install interactive service. using service.bat install service. not make interactive. how can programatically. command line options enable interactive mode?

hi rempran,

thank posting in windows server forums,

you can use set command , syntax :

set [variable=[string]]
variable
specifies environment-variable name.
string
specifies series of characters assign variable.

============================================================================


another example using echo


eg:

<tt>echo off</tt>
<tt>cls</tt>
<tt>rem yesno.bat</tt>
<tt>rem delete file named yn</tt>
<tt>if exist yn del yn</tt>
<tt>rem prompt user</tt>
<tt>echo if want yes branch,</tt>
<tt>echo press key followed by</tt>
<tt>echo ctrl-z , enter. if you</tt>
<tt>echo want no branch, press</tt>
<tt>echo ctrl-z , enter.</tt>
<tt>rem response. if ctrl-z rem pressed,</tt>
<tt>rem no yn file created.</tt>
<tt>copy con yn > nul</tt>
<tt>rem if yn file exists, branch</tt>
<tt>rem yes otherwise branch no</tt>
<tt>if exist yn goto yes</tt>
<tt>goto no</tt>
<tt>:yes</tt>
<tt>echo chose yes.</tt>
<tt>goto end</tt>
<tt>:no</tt>
<tt>echo chose no.</tt>
<tt>:end</tt>
<tt>rem erase yn file, if exists.</tt>
<tt>if exist yn del yn</tt>



Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...