File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Batch file to exit if server is not started
Joined: Jul 28, 2010
Oct 22, 2010 03:05:37
I dont know whether it is right place to ask
I need a batch file script for taking backup and that is sheduled for every day evening for taking backup
The condition is if the server is started it should stop the server and copy the location of a file in backup folder and if server is not started it should not run the batch file if should come out
can you give the script for this batch file.
Joined: May 14, 2008
Oct 23, 2010 09:27:29
First, this has nothing to do with
, so I am moving it to the general topics forum.
Second, I hope that the word 'batch' implies you are running on Windows, otherwise I should have moved this thread to the Linux forum.
Third, I hope that by 'server' you mean a physical machine (or even a VM), and not 'application server', in which case you might have meant JBoss AS and I should have left the post here.
Fourth, we don't write batch files for you. You need to try some things and then post the batch file that you have, tell us where you are having problems, and then we will help. See:
JBoss In Action
I agree. Here's the link:
subject: Batch file to exit if server is not started
Not able to get access to console.
Autobackup of mysql database
Client Side vs. Server Side Validation
batch file script
Open tomcat server in the same dos window.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013