🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #216

Start and stop program from command prompt

#216
From: Peter POCATKO
Date: Thu, 12 Jan 2006 23:00
27 lines
1916 bytes
Hello ,

I finishing program in java and my vision is that after start Windows 2003 
is going to start my program .
Is working fine . I run it from bat file in startup and it looks like :
xxx.bat
start "MyApplication" /min java -jar MyApplication.jar start

Problem is and I working on it couple of days without any solution. That I 
know that if low battery event
is generated on UPS after that is run bat file on Windows 2003 , where are 
commands for safe shutdown of
virtual disks and operating system and I need firstly from the same bat file 
safe shutdown MyApplication
where is running in thread INSERTs commands and after that is starting timer 
which can be set from 1 to 99
minutes and during this time I would like shutdown MyApplication ... and it 
run to round of course ..
for example
yyy.bat
start "MyApplication" /min java -jar MyApplication.jar stop

Have you any idea how it can do this ? I tried something but it didn`t work 
but I like to hear some other
opinion.

Thanks 
Technical Details
Message-ID: <43c6dedc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,d7d22fba91821b54,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter POCATKO" <pocatkop@iol.sk>
Newsgroups: borland.public.jbuilder.java.language
Subject: Start and stop program from command prompt
Date: Fri, 13 Jan 2006 00:00:00 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 213.215.79.137
Message-ID: <43c6dedc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1137106652 213.215.79.137 (12 Jan 2006 14:57:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail