Skip to main content
Participant
September 17, 2008
Question

start & stop from command line

  • September 17, 2008
  • 1 reply
  • 435 views
I have been assigned to update our development integration test system. The test system runs on Windows server 2003. The test system runs multiple instances of CF8. I have to stop the jrun services, install the new code and restart the services. Doing this from the services console and switching to winzip to unzip the code is time consuming. I would like to create a batch file where I can drop the zip file in a specific directory and execute the batch file. The batch file will have to stop jrun, unzip the file and start jrun; for each instance and delete the zip file at the end.
    This topic has been closed for replies.

    1 reply

    Inspiring
    September 18, 2008
    cholzwarth wrote:
    > I have been assigned to update our development integration test system. The
    > test system runs on Windows server 2003. The test system runs multiple
    > instances of CF8. I have to stop the jrun services, install the new code and
    > restart the services. Doing this from the services console and switching to
    > winzip to unzip the code is time consuming. I would like to create a batch file
    > where I can drop the zip file in a specific directory and execute the batch
    > file. The batch file will have to stop jrun, unzip the file and start jrun; for
    > each instance and delete the zip file at the end.

    That would look something like:
    net stop "servicename"
    unzip update.zip path\to\instance\
    delete path\to\instance\WEB-INF\cfclasses\*.class
    net start "servicename"

    Repeat for each service and delete the zip file in the end.

    Jochem


    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion