run the bat closing ms - dos prompt

Hello guys,.
I have a question for you.
I have a java application and I want to run it from the pot.
I need to run it to .bat file.
My question is... when I run guest of ms - back to the bat file is open and it connects to each operation that I run on my request.
I would like to close prompt ms - dos in the background, without closing the application.
Is this possible?

Thanks in advance,
Concerning

You can try to do something like this:

@echo off
cmd /c start /min java packagename.classname
exit

Tags: Java

Similar Questions

  • Run the .bat file using fileObj.execute () showing the result by completely removing the lines of code in extend script?

    Hi guys

    I created a dynamic .bat file created inside java and copy it to a location and managed through fileObj.execute ();

    Example of

    -------------------

    var line1 = 'some code ";

    var line2 = 'some code ";

    myCode var = line 1 + line 2;


    var myFileC = new file

    myFileC.open ('w');

    myFileC.write (myCode);

    myFileC.copy ("some location\file.bat");

    myFileC.close ();

    Run the .bat file

    batFile var = new file ("of the location\file.bat");

    batFile.execute ();

    Now .bat file is successfully executed but the content of this file created bat shows up to extend in script by removing all my code above...

    I have to cancel to do back whenever I run and sometimes accidentally I saved it lose all the code.

    can someone help with this problem?

    Simply change it to this:

    var myFileC = new File ("some location\file.bat");

    myFileC.open ('w');

    myFileC.write (myCode);

    myFileC.close ();

  • Run the bat with cfexecute

    Hello
    This is a newbie question, but I'm stuck. I have a .bat that works very well through the command prompt, but doesn't work with < cfexecute >, it seems simply to read the .bat but not run. The .bat reads as follows:

    Java - classpath ".;" C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar' AnnieAPI

    "When I run < cfexecute name="C:\CFusionMX7\wwwroot\i-recall\javaClasses\GateClasspathRun.bat ' variable = "myVar" timeout = "100" >
    < / cfexecute >

    The output looks like this:
    C:\CFusionMX7\runtime\bin > java - classpath "C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar" AnnieAPI

    Simply, he reads and does not run the AnnieAPI java command. I didn't write so maybe I need to add something to run this .bat file. Any help is appreciated.

    Kalen - G

    I thought about it. Even if the bat file and the java class are in the same folder, I did specify the location by adding the following lines at the beginning of the .bat file:

    EDI
    CD cfusionmx7/wwwroot/i-reminder/javaClasses

    Now it works perfectly. Thanks for all the help, I appreciate it.
    -Kalen

  • run the bat in teststand

    Hello users,.

    Location:

    I'm calling from Teststand 4.1 a bat.file that runs software of programming (FLink.exe) with the corresponding hardware jtag (RLink of ST Microelectronics), program a µController my testobject.

    Problem:

    the bat file is executed, but the can´t µController programmed because of the en of the flink errror message!. But when I call the bat from the Explorer, that it works correctly.

    Has anyone experience with the nature of the problem?

    I would welcome a solution.

    Grettings

    Michael

    I found a solution to my problem with the help of an engineer by OR!

    I had to change the directory the active directory to the directory have been my work-batch file is run.

    See all related links:

    http://digital.NI.com/public.nsf/allkb/D0F75B559DB622B586256BBF007A1B64?OpenDocument

    http://digital.NI.com/public.nsf/WebSearch/365DC2996F67D8AF86256AF000558B90?OpenDocument

  • Unable to run the Windows 7 Administrator command prompt

    Cannot run command prompt as an administrator in Windows 7 that the problem was discovered many years ago. But another administrator account can start. Win + R to run the command, at the command prompt the corresponding response. A command prompt in the Task Manager processes

    Proposed by the moderator to Performance & category system failures

    Hello

    It is possible that your user account is already damaged and this is why you have this problem.

    To resolve this problem, create a new administrator account and migrate your files to the new user account. For more information about how to create a new user account, please refer to the link.


    Let us know if you need more assistance.


    Kind regards.

  • Windows does not run the .bat files

    So, this happened to me before, and I never seem to be able to find a solution.

    Whenever I try to run a batch file, I get an error saying '... Cannot find C:\Users\Kyle\Desktop\something.bat.

    I try to run it through run them, CMD, shell, and nothing will happen otherwise that "cannot locate 'something' c.

    So, I'm trying to edit the .bat with the exact location, and nothing happens. I still get the error.

    In this case, I am trying to run a decompiler for source games .bsp map, but it's already happened.

    See the solution in this thread

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/unable-to-run-bat-file-in-Windows-7/71509d83-27A1-4c5a-ABE9-a627489880f3

    Check theshortcut icon properties, check that they are pointing to the bat/s file.

  • FDM using so we can run the .bat file

    Hello

    I am trying to automate the process of load, IE I want to load data using FDM in essbase and once the data is loaded I want to launch a file beats through which in the essbase run scripts agg.

    If can I write it in the Aftload a script to call the .bat file that contains scripts agg.

    Is it possible to do?

    Can anyone help give me an idea for me on this?

    Thank you

    The Essbase adapter runs natively an aggregation after load if you properly configure the metadata. I suggest you only consult the Readme adapter.

  • Run the file .bat with arguments?

    Hello

    I need to run the .bat file with Adode Indesign JavaScript parameters/arguments. "File.execute ()" runs the file using the appropriate application. He is running suceessfully in .bat file. But I'm unable to pass arguments. I need to run the command as

    For example: test.bat parameter1 parameter 2

    var myFile = new File("c:\\test.bat");

    myFile.execute ();

    The above statements works very well. Is it possible to run settings. Please suggest the solution above the problem.

    How "combat environment variables?

    type test.bat

    echo% % BLAH > c:\test.txt

    $.setenv ("blah", "value");

    File("c:\\test.bat"). Execute();

    Dirk

  • problems with the bat files.

    Why am I unable to run bat files in my pc. When I double click on them just opens and closes and I don't understand what is the real problem?

    Why am I unable to run bat files in my pc. When I double click on them just opens and closes and I don't understand what is the real problem?

    If it opens and closes, it probably * is * running the file beats. Only you don't see the results because it is all happening too fast.

    To view the results, change the way you run. Rather than run the bat file, run the CMD command. Then run the file bat in the CMD window that opens.

  • Re: How to run the update to the BIOS of the DOS - Satellite A100 PSAA8A command prompt?

    I'm having some trouble with my GF Satellite A100 (PSAA8A). When installing a new HARD drive with a clean install of XP, I flashed by chance, one of the BIOS when installing drivers. Its kind of bricks now.

    Using a floppy disk CD boot, combined with the update of the V6.00 BIOS, I goes to a DOS command prompt, but not sure where to go now.

    Under * Tradional BIOS update *.
    See the link: [http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/faq.jsp?z=234&service=EU&from=faq_selection&CFID=B IOS & FID = TRO0000000b07]

    It is said:
    + 1. Extract the zip file containing the BIOS upgrade to a temporary folder. +
    + 2. Three subfolders will be generated in the temporary folder. "docs", "update - 3.5' disc', 'Update - CD - R or CD - RW +.
    + 3. Insert a 1.44 MB diskette formatted in the floppy disk drive. +
    + 4. Run the *.exe file in the folder "" Update - 3.5 disk ". Follow the instructions on the screen. A BIOS update diskette will be generated. +

    But there is no 3 folder. There is only a single called S10VWF that contains Winphlash etc. (see photo url). As far as I know, I can only run Winphlash Windows environment due to its GUI. Then what should I do? Help!

    http://img.Photobucket.com/albums/v259/tRUkbOY/S10SWF.jpg

    Hi Brett

    There is a little thing that you have forgotten or supervised.

    The BIOS you downloaded is a version of BIOS to WIN. It s not traditional BIOS update!

    The description published in your ad describes the update using the traditional BIOS.
    But the Toshiba driver page only provides updates of BIOS based VICTORY. The BIOS can be upgraded only from Windows operating system running.

    Please don't mix these two possibilities of updates!

  • I, stupid, changed the program by default to a BAT file to the cmd prompt, well, now I can't run the batch files now, please help!

    I, stupid, changed the program by default to a BAT file to the cmd prompt, well, now I can't run the batch files now, please help!

    Hi William,.

    Welcome to the Microsoft community.

    Batch file is a type of script file, a text file, containing a series of commands to be executed by the command prompt. When you run a batch file, it opens the command prompt to run the scripts.

    It would be great if you can answer the following questions:

    1. what happens when you try to run a batch file?

    2 are. what batch file you referring?

    3. the problem occurs for a particular batch file?

    First of all, I suggest you to check the commands written in a batch file. To do the same thing, just right-click on the batch file, and then click change. It will open Notepad with the list of orders scripted for this particular batch file.

    If you have additional questions on the computer, please ask your question about Windows and we will be happy to help you.

  • I can not run any .bat and cannot open the cmd prompt

    I can't run the files .bat and most horrible thing I've ever met is a missing cmd.exe. It's starts with me trying to play Assault Cube, which must run on a .bat instead of .exe like other games. But whenever I try to open a batch file, it keeps gives an error "Windowscannot find"file to the .bat file (directory)". Make sure you typed the name correctly and try again. "Each. Time.

    So, as everyone will do, they search the Internet. I would like to do is short.
    A virus? No, my laptop is clean after scanning with Malwarebytes. You have to open as an Admin? Yes, but I got an error saying "this file does not have a program associated with it for performing this action." Please install a program or, if such is already installed, create an association in the default programs control panel'.» Tried to do? Well I think that it is impossible for the command prompt to be included in the default values list. I tried open the command prompt by typing "cmd" and pressing on enter the Start Menu? So many times I've tried, but it's endless. Whenever I do this, the command prompt displays upward and 0.5 seconds later, it's farm/accidents/output by itself. Now 0.1 second.
    So, I thought on this subject and I typed in the start 'Command Prompt' Menu. When I see the icon, it's like the path or the file is missing of some sort. So I click right on the top that says "Command Prompt" and click on the option "open the file location, which made me feel weird as there should be no such thing as an option for a file that is part of the folder system32." I was directed to ' C:\Users\Acer\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories'.
    I found a shortcut to the command prompt, but I checked the file in "position to open the file", the location of the file is not displayed (opens in a new window as every time it is done). Also the guest who said when every time the .exe is missing is not indicated where we gave options to remove the .lnk. But it shows same either. If the file should be there, but it seems that the cmd is absent when I searched in system32.
    So, I'm at the blunt end to try to do things and to rely on some other cmd work and one question remains to ask with your opinion, are there links to download Microsoft cmd or is it even safe to use the another cmd PCs or by downloading?

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    Hope this information is useful.

  • Cannot run the setenv.bat file

    Hello guys,.

    I started working on OracleAS integration B2B recently. I finished installing and I started to work on EDI X 12 transaction Internet scenario, I finished the whole process in the Oracle B2B user interface for this scenario, but I'm not able to run the setenv.bat file located in the
    ORACLE_HOME\ip\install way, when I'm clicking the setenv.bat file its does not, and I can't seem to set the classpath.
    Because of this problem, I am unable to go further, because I can't run the files deq.bat and enq.bat without running the setenv.bat file, please can anyone give me the solution for this problem.

    Thank you

    Sunny

    The solution is very simple: do not close the command prompt, but the second script from the prompt in command as well as the first! This is how it is intended to be used.

    If for any reason, you need to run a single script, you can modify to call the script setenv.bat as the first step:

    call %ORACLE_HOME%\ip\install\setenv.bat

    Or alternatively, you can change your environment and set the necessary properties manually so that they persist. However, I would still strongly advice against a double click on the scripts. You want to run it from a command prompt, to keep the command prompt when the script is done, otherwise you may miss important error messages.

  • Cannot run the Vista command prompt, commandprompt.ink message is missing

    I'm unable to open the command prompt, commandprompt.lnk refers to lack msg is displayed.

    Hello

    Start - type in the search box-> CMD.exe

    The default path is C:\Windows\System32\CMD.exe

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    I hope this helps.

  • Is it possible to run the restore of the system from a command prompt?

    Plug;

    Dell Studio 540 Quad core 3, 2 GHz (don't remember exactly?) processor

    Ram 8BG

    Windows Vista Edition Home Premium

    In general, everything was working fine until I ran the auto update for Vista. I don't know exactly which updates made it crash (that's the downside to update automatic, I guess?), but what happens is;

    PC powers up correctly, and everything seems to be in order up to and including the connection procedures. Once connected, the first error message pops up saying: "Windows Explorer" is not working properly and has restart. This will make a loop again and again, and as long as the error is running, I'm not able to perform all actions either. The only thing I am able to do, is to run the Task Manager, but if I try to run applications, programs or processes there, the Task Manager itself is in need of a reboot. So, basically, the only action I can perform the Task Manager is turn off the PC safely.

    Helps out;

    Ran memory diagnostics, no error found.

    I ran system restore, not detected no results. (....) According to me, if I could run Vista system restore as soon as Windows Explorer is stable, I can choose a restore point prior to the restoration defined point in chest upward and it will solve the problem.

    I ran the repair of the system, but the PC does not recognize a problem, according to the definition, the start sequence works as it should.

    I ran the security modes to see if I can access previous system restore points, but like windows explore does that no action can be taken. It's the safe mode; Base drivers and base with network connection drivers.

    I ran the command line safe mode, that works very well, but don't really know what I can do from there.

    I have the option to reinstall the OS, but I hope a response must be made of this? My thought is;

    Is it possible to run the restore of the system from a command prompt? And if so, where is the path, finally, what should I do?

    This starts the system restore
    %systemroot%\system32\rstrui.exe
     
    Download http://www.nirsoft.net/utils/shexview.html
    Disable all non-microsoft shell extensions (to explore) and reactivate a
    by so this can help.
     
    --
    ..
    --
    "Arefare" wrote in message news: f6b7f70f-b8a0-4291-ae95-92a4d659f16a...
    > Care;
    >
    > Dell Studio 540 Quad core 3, 2 GHz (don't remember exactly?) processor
    >
    > Ram 8bg
    >
    > Windows Vista Edition Home Premium
    >
    >
    >
    > In general, everything was working fine until I ran the auto update
    > for Vista. I don't know exactly what updates does plant (it is
    (> the disadvantages of the automatic update, I guess?), but what happens is;
    >
    > PC powers up correctly, and everything seems to be in order until.
    > and including connection procedures. Once connected, the first error message
    > comes up saying "Windows Explorer" is not working correctly and to
    > restart. This will make a loop again and again and while the error message is
    > ongoing enforcement, I'm not able to perform all actions either. The only thing
    > I am able to do, is to run the Task Manager, but if I try to run a
    > applications, programs, or processes, the Task Manager itself needs
    > a reboot. So, basically, the only action I can perform the Task Manager is
    > turn off the PC safely.
    >
    >
    >
    > Helps out.
    >
    > I ran memory diagnostics, no error found.
    >
    > I ran system restore, not detected no results. (....) I think that if I could
    > run Vista system restore as soon as Windows Explorer is stable, I can
    > Choose a previous restore point as the restore point defined in boot up
    > and it will solve the problem.
    >
    > I ran the repair of the system, but the PC does not recognize a problem, as in
    > definition, the start sequence works as it should.
    >
    > I ran safe mode to check if I can access previous system
    > points of restoration, but as windows explore does not perform any action can be
    > catches. It's the safe mode; Base drivers and base with network drivers
    > connection.
    >
    > I ran the command prompt in safe mode, which works very well, but don't really know
    > what I can do from there.
    >
    >
    >
    > I have the option to reinstall the OS, but I hope a response is to
    > do this? My thought is;
    >
    > Is it possible to run the restore of the system from a command prompt? And if so, where
    > is the path to him, finally, what should I do?
    >
     
     

Maybe you are looking for

  • European Folk Sound Kit

    No one here knows what that the sound of the instrument "European Folk Kit" of the Pack of MainStage world Instrument is on the note e flat 5? This is the kind of am eerie screech-buzz-metallic-horror sound. Is this just a sound effect created by App

  • Apple TV and YCbCr color space

    Sorry for my bad English. I want to know if we can expect from Apple TV to support as their previous versions YCbCr color space. Thank you Ivan

  • The 2.0 firmware update

    After recently trying to update the firmware on my NEX-FS700 2.0 that I discovered that the updater works on a Mac that is running a 32-bit OSX. Thus, anyone with Mountain Lion wanting to update will receive an error message saying that the update wi

  • Sound level LAFMax

    We strive to get LAFMax (the level of measured weighted maximum noise with a fast time weighting) of recorded sound intensimetrie.  We sampled in two different ways. A game took in a second blocks to 25.6KS / s and the other method is to get a single

  • Using LabVIEW and LabVIEW 7.1 2010 on the same PC (Windows XP)

    I have LabVIEW 7.1 on a Windows XP 32-bit PC, and we intend to move to LabVIEW 2010 soon. Many of our software uses traditional DAQ, DAQmx and DeviceNet. We have to use both versions of LabVIEW for awhile on the same PC. Is this possible at all? I in