Run CMD java service minimized

Posted on 2007-10-10
Last Modified: 2012-06-27
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?
Question by:R7AF
    LVL 26

    Expert Comment

    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
    START /?
    LVL 7

    Expert Comment

    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
    LVL 7

    Expert Comment

    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.
    LVL 10

    Accepted Solution


    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"

    LVL 1

    Expert Comment

    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

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now