How run a scheduled java.class in DOS as ascheduled process?

How can a program be written as a stand-alone java program and run from a command line, such as “java newpgm asbsuid/pwrd mbfuid/psswrd”. Can  such a DOS command line can be automatically scheduled? And How? Is there an automatic schedular for servers? What and how needs to be done?
coolgemAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
cookreCommented:
Presuming you're running NT/2K/XP/3K, that's what Windows Scheduling Servgice is used for.  There's a wizard for it at:

Start / Settings / Control Panel / Scheduled Task / Add Scheduled Task

You can also schedule a task remotely with the AT command.
0
 
coolgemAuthor Commented:
What is the AT command
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
coolgemAuthor Commented:
The Window Schedular does not work.  It is not a server for java programs.

I will see about the AT command.   Thank you.  coolgem
0
 
cookreCommented:
The most common thing to do is make a BAT file that runs what you need, then schedule the BAT file.  From the Wizard, you do a Browse to the BAT file.
0
 
coolgemAuthor Commented:
What do I put in the bat file?
0
 
cookreCommented:
The command to run the java program.
0
 
coolgemAuthor Commented:
How does a daemon come into play?
0
 
cookreCommented:
I guess I'm a bit confused now, not being a Java type.

If entering:
java newpgm asbsuid/pwrd mbfuid/psswrd

from a DOS prompt does what you need, then you can put that command in a BAT file, then schedule that BAT file for regular execution.
0
 
coolgemAuthor Commented:
Thank you I think I know what to do now
0
All Courses

From novice to tech pro — start learning today.