How to hide command prompt?

hi,
i start my java application from a .bat file, and i'd like to hide the command prompt window that appears togeter my program form.
anyone can help me?
this is the batch file content:
echo off
cd "my folder"
java main

Use a Jar file instead and specify the main class in the manifest file.
(Startable with doubleclick then)
Very good instructions in the SUN Java tutorial.

Similar Messages

  • How to hide command prompt window when using system exec

    Hello, I'm using the system exec VI to do some file transfers for a LabVIEW application.  I'm worried that the black command prompt window with white scrolling text that pops up when system exec is called might frighten the non-tech savy users of this LabVIEW application.  Is there a way to hide the command prompt window?
    Solved!
    Go to Solution.

    Wire a TRUE to the Run Minimized input.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to access command prompt?

    When I am giving the file path as command in command line input of system exec.vi, the command prompt window is opening and closing immediately.
    What should I do so that the Command prompt window stays open?
    Solved!
    Go to Solution.
    Attachments:
    cmd.vi ‏8 KB
    cmd.vi ‏8 KB

    Hi kimhyun,
      try setting the wait until completion input of systemexec.vi to false.In my PC i could able to see the command prompt without close.\
    Regards,
    SrikrishnaNF

  • How to read Command Prompt?

    Hello!
    In my application i need to read information from Command Prompt. From other programmers i knew that method : System.in.read(); state for it. But I get the whole bunch of error messages from compiler.
    If you know concrete URL's or web sites where I can learn about this function, please reply to me.
    I will appreciate any help.
    Thank you in advance
    Michael

    System.in.read() throws a java.io.IOException. Did you put try/catch statement to catch this exception ?
        try {
            System.in.read();
        catch(java.io.IOException ioException) {}

  • How to hide command fied using transaction iview

    Hi All,
    Is there any way to hide command box (transactional field) in Portal using transactional iview ?
    I have searched in sdn forum, it is possible via IAC iview using application parameters ~headerOKcode = 1.
    Since our ITS is not configured properly and it is continously giving Browser errors (Object expected, 'wgu_global_eventhandler' is null or not an object).
    So.........I can;t go ahead with IAC Iview.
    I suspect.....anyone has gone through this problem and experts has a solution with transactional iviews to hide those command boxes.
    Appreciate your inputs in this regards.
    Thanks,
    Anil Kumar

    Try this in 'Application Parameters' field '&~NOHEADEROKCODE=1'

  • How to release command-prompt?

    Is there some way of releasing the command prompt in windows when running java applications. I'm looking for a similar solution as running "[command] &" in linux..
    Thanks

    if you are truly looking to match the functionality of background process, the windows equivalent is a service. if you are just trying to run without a window popping up that is different story.

  • How to hide graph prompt?

    OBIEE 11.1.1.6.11
    I know I can and have hidden pivot table prompts.
    How do I hide the graph prompts?  I can not find this anywhere.
    S

    Try this code in the text object
    <style>
    .PTPageControl { border:0px; padding:0px; }
    .PTPageEmbedded { border:0px; }
    </style>
    Check the box contains for HTML markup.
    Mark if helps,
    Thanks,

  • How to hide command pront in SAP screen

    Hi,
    I have a requirment that i need to hide the command pront in SAP screen, it is very very urgent for me, please help me.
    Reward for every usefull answer.
    Saleem.

    Hi,
    Thanks for your responce...but the problem is i need to do from the program.
    Saleem.

  • Portal: custom i-view definition (transaction) how to hide command box

    Dear Sirs,
    we are trying to define a transaction i-view (displaying a SRM transaction)
    in portal but hiding the command box.
    The i-view has been defined under portal content \..\iview\GUI\
    We have tested some values in "Parameters Forwarded to Transaction" in I-VIEW definition,
    like...
    noheaderOkCode = 1
    WEBGUI_SIMPLE_TOOLBAR  = hide, no etc..
    listed in other threads
    but whitout any effect.
    Is this a possible feature and what are the correct values ?
    From SRM side we have tested the transaction in SE93 in both modes, EWT and normal.

    Sorry but we have any result with these values
    ~NOHEADEROKCODE = 1 or
    ~WEBGUI_SIMPLE_TOOLBAR = 0
    In the "Parameter forwarded to transaction" in the iview definition from portal.
    The command box appears in any case.
    Whe should remove also the "menu" button.

  • Newbie.. how to set command prompt and command aliases

    So, I usually log an as a root (Solaris 10), and I would like to have a current folder in my prompt, so I put a line in /etc/profile:
    PS1="${LOGNAME}: `pwd`: "
    but it shows only a folder that was current at a logon (root home folder)... how could I put it to be dynamic?
    also, I would like to have alias
    ll=ls -l
    and I tried to put it in /etc/profile, but it doesn't work.
    how could I change this?
    I know these are begginers questions :)
    tnx :)

    bongo_zg wrote:
    So, I usually log an as a root (Solaris 10), and I would like to have a current folder in my prompt, so I put a line in /etc/profile:
    PS1="${LOGNAME}: `pwd`: "Logging in as root like that is a bad idea.
    I'd suggest that you do one of the following
    - use roles so that an ordinary user can perform some tasks that require elevated privileges
    - use pfexec
    - use sudo
    but it shows only a folder that was current at a logon (root home folder)... how could I put it to be dynamic?
    also, I would like to have alias
    ll=ls -l
    and I tried to put it in /etc/profile, but it doesn't work.
    how could I change this?
    I know these are begginers questions :)You haven't said which shell you are using.
    For sh and ksh, then something like
    PS1="\$LOGNAME: \$PWD: "
    should work.
    Paul

  • How to hide the command prompt

    I want to hide the command prompt as soon as the execution begins.
    please can you guide me
    thanks

    Hi,
    I tried as suggested but got the following exception :
    java.io.IOException: CreateProcess: start /B cmd /c myprogram.bat error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:66)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    I have the myprogram.bat file [other commands like "echo also do not work].
    The O.S is Windows 2K [it does have the start command] and I am using Jdk 1.3.1x
    Thanks !

  • How to run a program as an administrator from within a non-elevated command prompt?

    I have a project that is going to be running on a kiosk, and the user that is running the kiosk software is going to be restricted.  I have an alternate administrator account, but I cannot seem to figure out how to open my program running as this administrator
    user.  I have tried to use runas, like so:
    runas /user:admin kiosk.exe
    However, when I try to run this command, it asks me for the password of the administrator account and my program doesn't open correctly.  It fails to open at all.  If I change the run as to a start command, then the program executes fine so its
    not a problem with my software.
    Is there a way to pass a password parameter to runas so that it will not prompt for the password every time?  If there is not, can someone think of another way for me to elevate my process to administrator without being logged in as one through the
    command prompt?

    Hi KevinGEAR,
    You want to allow the others without the administrator`s level to run this software and  meanwhile the administrator is not logged in, right?
    Here is an alternative solution :
    1.To work with this solution, a built-in administrator account should be enabled and meanwhile you can create a standard account. The built-in administrator account is different from the administrator account you created.
    To enable built-in administrator account:
    Ways to Enable / Disable the Built-In Windows 7 Admin Account
    http://social.technet.microsoft.com/wiki/contents/articles/3040.enable-disable-the-local-hidden-built-in-administrator-account-in-windows-7.aspx
    2. Use the following code
    runas /user:ComputerName\Administrator /savecred "Full path to program's exe file"
    Here is a link for reference:
    Elevated Program Shortcut - Create for Standard User
    http://www.sevenforums.com/tutorials/193743-elevated-program-shortcut-create-standard-user.html
    NOTE: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
    Best Regards

  • How do i get sql plus to start in something other than command prompt?

    I have just installed oracle 11g enterprise addition. I am use to a different type of editor for the sql plus, the one I am use to comes up in a white area and has drop downs for file, tools, spool, help and so on. You can also open notepad with a shortcut. I like this better than command prompt how do i get this?

    I think you mean sqlplusw.exe which is a Windows executable delivered until Oracle 10.2 but no more delivered with Oracle 11g.
    Mayb you can have a look to SQL Developer http://www.oracle.com/technology/software/products/sql/index.html

  • How can I pass a value to the command prompt?

    I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?

    Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
    Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
    To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
    Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
    Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
    Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
    There are also overloaded forms of exec(),
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
    The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
    Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
    Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
    Another lower level approach that does not require extension associations to be quite as well set up is:
    Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
    Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
    Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
    Note that
    rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
    won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
    With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
    Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
    Start the script with #!bash or whatever the interpreter's name is.
    Mark the script file itself with the executable attribute.
    Alternatively start the script interpreter, e.g.
    Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}";

  • How to execute a scenario from Windows command prompt

    Hi,
    I have a package which is executing fine from Designer. But the same scenario if I am trying to execute from windows command prompt, then it is giving error.
    The package is getting a refresh variable, passing to interface which is creating a file from table, this file is then getting FTP'ed to another server.
    I am executing following command -
    startscen OB_TAB_TO_FILE_PKG 001 ODICTX "-v=2"
    The error is -
    A JDK is required to execute Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: Starting scenario OB_TAB_TO_FILE_PKG 001 in context ODICTX ...
    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
    at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2451)
    at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188)
    at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166)
    at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
    at com.sunopsis.sql.i.run(i.java)
    DwgJv.main: Exit. Return code:-1
    Please let me know where I am going anything wrong.
    Thanks,
    Himanshu

    Hi,
    you need to make the necessary changes to the %odi%\bin\odiparams.bat config file, under the "Repository Connection Information" section so that startscen knows how to extract metadata from your repository.
    You apparently have left the default settings to the Hypersonic demo repository. Is that the technology your repository is hosted on?

Maybe you are looking for

  • OS command issue

    Hi Experts, This is a query regarding OS command used in receiver communication channel. I have used OS command to copy a file.when I run the command on rsbdcos0,in this program its showing sucess But its showing an error at communication channel. Is

  • Soap Sender Adapter Preserve And Access Soap Header

    Hi, I would like to preserve the Soap Header created by a client and access it in a mapping using the the Soap Sender Adapter (SP16). Does anybody know how to do this? Kind regards, Heiko

  • Plugin opening on 2nd monitor

    I have a 2nd monitor hooked up to my Macbook pro. I have the mixer on the 2nd monitor however whenever I open a plugin for the first time it always opens on the laptop screen, even though I open it from the mixer on the second monitor. Once I move th

  • Copy appset fails step 2- Cannot copy WebDir -

    Does someone have any quick ideas about this error? BPC - V4 tx

  • Getting "could not initialize photoshop" error message on launch.

    I'm getting this error message when launching Photoshop CC.. I uninstalled it, then reinstalled it.  I'm not sure if I updated before I had this problem initially, but I'm getting the same message on launch of the newly installed PHotoshop.  I'm runn