installing interactive service
I have an application which bundles tomcat. Instead of using tomcat startup.bat I want to install this as an interactive service. I am using service.bat to install the service. But it does not make it interactive. How can I do that programatically. Any command line options to enable interactive mode?
January 6th, 2010 4:11am
Hi Rempran,Thank you for posting in windows server forums,you can use SET command and the syntax would be :
SET
[variable=[string]]
variable Specifies the environment-variable name. string Specifies a series of characters to assign to the variable. ============================================================================Another example is using Echo eg:
<tt>ECHO OFF</tt> <tt>CLS</tt> <tt>REM YesNo.BAT</tt> <tt>REM Delete any file named YN</tt> <tt>IF EXIST YN DEL YN</tt> <tt>REM Prompt the user</tt> <tt>ECHO If you want the Yes branch,</tt> <tt>ECHO press Any Key followed by</tt> <tt>ECHO Ctrl-Z and Enter. If you</tt> <tt>ECHO want the No branch, press</tt> <tt>ECHO only Ctrl-Z and Enter.</tt> <tt>REM Get the response. If only Ctrl-Z REM is pressed,</tt> <tt>REM then no YN file will be created.</tt> <tt>COPY CON yn > nul</tt> <tt>REM If the YN file exists, branch</tt> <tt>REM to Yes otherwise branch to No</tt> <tt>IF EXIST yn GOTO yes</tt> <tt>GOTO no</tt> <tt>:yes</tt> <tt>ECHO You chose Yes.</tt> <tt>GOTO end</tt> <tt>:no</tt> <tt>ECHO You chose No.</tt> <tt>:end</tt> <tt>REM Erase YN file, if it exists.</tt> <tt>IF EXIST YN del YN</tt>
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2010 4:24am
Hi ,did you had a chance to go thorugh my previous post , and tried implemented the changes ?
January 8th, 2010 5:37am


