Run CMD java service minimized

On a Windows 2003 server we're running a scheduled java service. Every minute or so a CMD window pops up and the service is executed. Is it possible to run this CMD window minimized so it doesn't get in the way when working on the server?
LVL 13
Who is Participating?
yasserdConnect With a Mentor Commented:

Make a shortcut to the service and sechedule it.

Right click that shortcut and choose Properties>Shortcut then change" Run" from "Normal window" to "Minimized"

Farhan KaziSystems EngineerCommented:
You can use 'START' command with /MIN switch.
               START /MIN <script.cmd or command name>
               START /MIN C:\MyScript.cmd

For more info:
Click Start -> Run -> Cmd.exe -> OK
Or you could use one of my mini apps:
Runs hidder2.exe, hidden (you could rename this, for example "service_java.exe" will run "service_java2.exe", acting as the real exe, but hidden)
Same as hidder but runs "minnofocus2.exe" minimized with no focus
Same as hidder but runs "nofocus2.exe" with no focus
Does not run anything, just a null .exe
Of course you need to rename the service file, sometimes with java applications there will be a launcher and other exes.

Try to find the correct exe (1 or more) to hide, for example if in the java folder there is a: ping.exe maybe that executable produces the unwanted console window, rename to ping2.exe and copy hidden.exe as ping.exe, etc.
Instead of using java.exe, run it with javaw.exe - that's window free, and cleaner than all the short-cut and properties work-arounds approaches
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.