Off topic question in DOS Batch files ...

Hi,
I am sorry in advance, for posting an off-topic question. But I had no other known way.
I need to invoke 8 sessions of a java program on 8 different windows. I use Windows platform. I want to write a batch file that will cause the java program to be invoked on a separate window, so that I can watch the execution of 8 sessions at a time. How can I do this (specifically, how can I open a new window in batch files in DOS)?
Thanks in advance,
K
My java program invocation is like this:
C:\>java Site i
where i is a command line argument that will go from 0 to 7.

Batch files (to my limited knowledge) are just "macros" that procedurally run DOS commands. It's just like opening a new command window and sitting there typing a list of commands, except the computer does it for you. So, for example, to run the commands java HelloWorld and cls, the java program would first have to execute before the screen can be cleared. For your purposes, you may need a small launcher app.

Similar Messages

  • How do I stop ODI if my DOS BATCH file flags an error?

    I have a DOS batch file as the first step in my ODI package. How do I send a code to ODI to tell it that it has failed and to stop processing the rest of the package? I was told I could use an ODI variable to accomplish this but not sure how.
    Also, how do I pass a semaphore/flag an error in my DOS batch file to ODI ?
    Thanks in advance for your help.
    I tried to search for this info in John's blog: http://john-goodwin.blogspot.com/search?q=error
    but was not able to find it.
    :)

    In your package 1st step is OS Command then some other steps involved, right ?
    In that case you can have your package like this
    OS Command (first step) ---------OK--------------> 2nd step -------------------> 3rd step
    So your 2nd step will run only when the 1st step is successful, it will not start 2nd step as 1st itself has failed .
    Thanks,
    Sutirtha

  • How to call/Execute a dos batch file via LAN

    Hello,
    Can i execute remotely dos batch files?
    I have to execute bat file via LAN ex
    IP\dir\batfile.bat from abap code, is that possible?
    thanks in advance,
    Michal

    Hi,
    Use CL_GUI_FRONTEND_SERVICES=>EXECUTE method to run any application in your case batch file..
    The batch file you are trying to run should be accessible on presentation system i.e. user's machine.
    Regards,
    Vishal

  • How could I have a VI execute a DOS batch file?

    I need to update the PC's hardware timeclock and the Windows clock via a VI front panel. If I can update hardware and windows timeclocks from a DOS prompt (TIME/NEW TIME), is there a way to provide a LV interface for the same operation? If a VI could run a DOS batch file, having the operator enter a new time in a DOS prompt window is the next best thing.
    Thanks,
    Jeff Bledsoe
    Jeffrey Bledsoe
    Electrical Engineer

    tst wrote:
    The syntax is that of the operating system.
    Have you tried right clicking the VI and selecting Help?
    I found the online example by selecting help. I'm using LV 5.1 and I've noticed that offline help is not as detailed as it is with LV 7 Student Edition (I have student edition at home).
    In my latest attempts, I have the string "command.com /c time" wired to the command line input of system exec.vi. I get the dos prompt and a request for a new time.
    To avoid the operator having to enter the time in the DOS window, I tried passing carriage returns and a time update value in the command line input. It didn't work. Do I have to add a system exec.vi for each command line entry and concatenate the vi's somehow?
    Thanks,
    Jeff
    Jeffrey Bledsoe
    Electrical Engineer

  • DOS batch file

    Hi techies,
    Is there any way we can execute Ms-DOS batch file from a java program.
    Thanks..

    Runtime.exec("cmd /c thebatch.bat");
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Scheduling unix shell scripts from windows using DOS batch files

    Hi,
    I want to schedule unix shell scrips using windows scheduled. I have the option of scheduling the DOS batch files. But not able to connect to telnet using DOS. Please let me know if there is an option.
    Regards,
    -Anand

    Drive letters are user specific. When you run jboss it runs as you, with your shared drives. When you run it as a service, it runs as guest or another user so your drive letters are meaningless.
    Either setup the user or use UNC

  • Irregular delay while running a dos batch file using a servlet class

    i used RunTime( ) class to execute a dos-batch file containing some commands like changing the directory, running an exe(executable.exe) file...etc in a servlet class. while this servlet class is invoked, the exe file(executable.exe) is run after irregular delay at different trials.
    Note: When this batch file is run in a stand alone java class, it is working fine.
    what can be the possible cause of this prob? Help me in this.

    It's ok - I've found the answer.
    I'll post it here for anyone else who is interested.
    The problem stemmed from the fact that I had to put the path to javaw.exe in quotes, as the batch file is dynamically generated from the user's environment, and then run. The user's system properties gives a path to java home using a full path name, which WinNT/Win2K doesn't like.
    The following batch file content solves it, closing the DOS box after starting javaw.exe. Before this part of my batch file, there is just some file copying that goes on for the autoupdate process.
    set PATH=%PATH%;"D:\Program Files\JavaSoft\JRE\1.3.1\bin"
    start /B javaw.exe -Dmyapp.home=C:\myapp myapp.client.MyAppClient subSys
    exit
    The parameter subSys is just a command line parameter that MyApp.java looks for, so not relevant for everyone.
    /B prevents a second DOS box from opening.
    exit simply closes the DOS box once the javaw.exe process has started.
    Too easy! Although I can't believe how difficult it was to find information about this. Hopefully it will be of benefit to others.

  • Run a MS DOS batch file from the client

    Hi,
    I created a java source to run a bat file, the folder is loacted in the Database server.
    (Not in application server)
    create or replace and compile java source named execcommand as
    import java.io.*;
    import java.util.*;
    public class ExecCommand{
    public static void run(String cmdstr) throws IOException, InterruptedException
    try {
    int rtn;
    cmdstr = "cmd /c " + cmdstr;
    Process prcs = Runtime.getRuntime().exec(cmdstr);
    while (prcs.getInputStream().read() != -1 ) {}
    catch (IOException e) {
    e.printStackTrace();
    I called the java source from the procedure
    create or replace procedure run_batfile is
    begin
    execcommand(cmdtext => 'e:\services\genPDF.bat');
    dbms_output.put_line('file created successfully');
    exception
    when others then
    dbms_output.put_line(sqlcode || sqlerrm);
    end run_batfile;
    But the bat is not executing (The bat file is to generate a PDF file ). Bu when i executing this from my PC (Client PC) directly on the RUN , its generating the PDF file in the server.
    What could be the problem, What should be the path in the procedure,
    Shall i create any virtual directory ?
    Thanks in advance,
    Rizly

    Hi Justin ,
    Sorry for the late replay.
    I am running Oracle on Windows.
    The MS DOS Batch file is to convert XML file to PDF format. It is a Java Application.
    also it is a batch process, thats why i created a batch file for that. I am using FOP to convert XML to PDF.
    FOP is in the e:\services folder of the Database Server machiene. XML file is also in the same forlder and I need to generate the PDF file also in the same machiene.
    <<- You have a client machine. What do you mean by "executing this from my PC (Client PC) directly on the RUN , its generating the PDF file in the server.">>
    I have mapped the e:\services folder in my client machience, so i am accessible to the genPDF.bat file that is in the 'e:\services' folder of the DB Server. When i run the bat file from my PC as Start > Run e:\services\genPDF.bat . The PDF file has generated in the DB Server machien.
    I dont have the copy of the batch file in client machiene, but i have mapped to my client machiene.
    Thanks again,
    Rizly

  • Execute a sql command in a DOS batch file

    hi
    can anyone help let me know if there is any way to
    achieve this objective.
    objective is as below
    There will be a batch file run from a DOS prompt
    This will generate a CSV file for a SQL query
    and dump it on the local machine.
    thanks and regards
    Ashish

    hi Ashish,
    try using this
    at the command prompt:
    sqlplus username/password@connect_string @scriptfile
    and the contents of the scriptfile should be
    spool file.csv
    sql select statement;
    spool off
    exit
    HTH
    Naveen

  • Question about calling batch file by using the System Exec+.vi?

    Hi
    I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?
    Bill.

    Hi,
    Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.
    Good luck.
    Oleg Chutko.

  • Off topic question

    My apologies for posting off topic. Don't know where else to ask. Twice this week I was requird to reset my password to login to AD. Anyone else experiencing this?
    No issues for the Store, just AD.
    thanks
    susan

    sorry I have not seen this issue myself

  • Off topic question! mA/h rating and expected lief span of coin cell battery

    hi folks
    well, thanks for all the help here i got no labview. im just wondering how i can calculate an approximate lifecycle for coin cell batterys on the sensor motes i got here. if i know the average current it draws, say 30mA. and the input voltage (say 3volts), how can i approximate the life span of the device with 3.3v coin cells, i think 220mAh rating.
    at the minute all my testing was done when i was sending data blocks so i was always using current ,unless i was in idle mode. so my lifespan was just a couple of hours. i want to know how long the device would last under realistic working conditions, like sending packets of data when required, etc.
    sorry that  this is way off topic!
    eric

    Eric,
    The simple answer is that it is complex. The ampere-hour rating of a battery is typically based on a fixed discharge, either constant current or constant resistance. The most commmon rating is calculated from the constant current which discharges the battery to a specified voltage over 20 hours. The complexity comes from the fact that batteries do not provide the same amount of charge (current*time product) for different current levels.
    Looking at your case: 220 mAh capacity with load of 30 mA and variable duty cycle. If the capacity is based on a 20 hour discharge (coin cells may be rated differently because their typical use is long term slow discharge), the standard discharge rate would be 220/20 = 11 mA. If the capacity were linear with discharge current, the life with your load would be 220/30 = 7.3 hours. As you observed the actual life was shorter. This may have been due to less capacity at higher currents, internal resistance, or your load may require a higher voltage than that at which the capacity rating was specified.
    If your duty cycle was reduced to 10% and idle current was negligible, the life span would nominally be 220 mAh / (30 mA * 10%) = 73.3 hours. Depending on the characteristics of the battery and how long the load was on each time, the lifetime might be longer or shorter than that.
    Lynn

  • Need help for off topic question...please.

    First off, I want to appologize for posting this here...but it seems that the forum it belongs too it not accepting any new postings. At least I don't see a post button at the top. So anyone who is knowledgeable and patient with me would be most appreaciative.
    I use both Safari and Netscape. Im not sure which app. is doing this but it is quite annoying. It seems as I browse using both apps., when I finally do get to my desktop...I see a bookmark file. For example (bookmarks-23.html). If I just ignore it, they accumulate. As you can see, this is bookmark number 23. I am not sure what app. is doing this and why it is doing it. What could even happen to cause this.
    Any help would be appreaciated.
    Thanks in advance.
    Eddy

    Hi Eddy
    I guess you mean the safari forum, right?
    The reason you're not seeing a post button, is cuz you're not actually viewing the forum itself, but a list of recent topics.
    Just above that list - look for the actual link to the Safari forum.
    now you mention it.... I guess it could seem like there's no post button, if you're not already familiar with the discussions site.
    continuing OT - Quit either one of your browsers & use the other; if you get a #24 & 25 bookmarks file, you'll know it's the browser you're using now that creates them.
    When you know that - I'd suggest a new question in the Safari forum

  • Kinda off topic question about Naps

    Mod... feel free to close this if you feel you have to. I figured I might get a good response asking this here though.
    Anyway, I have a Zen Touch and a napster subscription. I liked the idea of being able to basically sample music (via the subscription) and then buy what I really like. Anyway, yesterday I bought my first album. It was an album that I had already downloaded via the subscription. I was under the impression that buying the album released any protection on it, and thus I would have a bunch of unprotected wma files. But after copying the wma files to another computer, I found this was not the case. I tried playing those files on the computer, and windows media player was still looking for my napster license. I was able to burn the tracks I purchased to a CD, like I'm supposed to be able to after purchasing them. But, is this what I have to do to "keep these tracks forever"? If my subscription runs out, will I not even be able to play the WMA files that I purchased? If that's the case, then this whole thing is disappointing. I was under the impression that by buying the tracks, they would no longer be tied to my napster subscription in any way, and I could create a library of wma tracks that I purchased, which I would be able to play and do whatever I want with after my subscription runs out. If I have to burn all my purchased tracks to CD to keep them forever, then what's the point of buying digital music? I still have to create a clutter of CDs if I want to keep the music. I realize of course that I could just rip the songs off the CDs I burn to have an unprotected file, but that's ridiculous.
    Does iTunes work like this? I.e., if I buy a track, it is still protected in any way?

    All DRM (WMA DRM or Apple Fairplay) stays with purchased tracks forever, UNLESS you burn an audio CD. On that audio CD there is no DRM anymore. You can rip it back into anything. Same thing in Napster, Yahoo, MSN Music, iTunes, etc..
    Here's how Napster works: You put Napster software (or WMP Napster plug-in) on as many computers as you want. No limit. Each track you buy gets a license to play on up to 3 computers. That's all. This license is for each track, not for Napster itself. You can have various tracks on many different computers so long as one track only plays on 3. When you go to, say, computer number two, you "synchronize" your Napster downloads. This puts all the stuff you downloaded or bought on that computer, too. Now you can play your purchased stuff on the second computer. Napster looks at the tracks you need on computer number two and automatically downloads a copy there when you synchronize. You do not need the full Napster software to do any of this--the WMP plug-in will work just as well. Tracks you download only (don't buy) will expire. The license will not allow them to play after you quit Napster. Tracks you buy from Napster have a license that does not expire. I have a whole bunch of these and I left Napster in September. They all play and all download to my Zen players, too. I just burned a few to CD recently, too.
    Message Edited by MikeM32 on -29-2005 0:5 AM

  • Running universal installer from Dos batch file

    Trying to a script an unattended install for a couple of Oracle client products (namely 9i client and Oracle Workflow Builder). My script runs the relavent setup.exe with a responsefile and silent option. This is working fine but the control is returning from setup.exe before the install has completed. The setup.exe goes on to complete ok but I have no way of controlling when to start the next install in the script. I have tried playing with BOOSTRAP=NO option in the ORAPARAMS.ini file but this does not have any effect. Any ideas anyone?
    Message was edited by:
    LegacyMan

    Hi Keith,
    Sorry missed you were running on windows.
    I do not run things on windows but it could be this works for you.
    create c:\oracle\backup.rcv script with favorit editor
    run
    shutdown immediate;
    startup mount;
    configure controlfile autobackup format for device type disk clear;
    configure retention policy to redundancy 2;
    backup as compressed backupset database include current controlfile;
    alter database open;
    Than run
    rman target='sys/change_on_install as sysdba' nocatalog cmdfile=c:\oracle\backup.rcv
    Cheers,
    Tycho

Maybe you are looking for

  • IChat issue

    Hi Am having issue with iChat on my iMac, in which iChat wndow pop-ups everttime I log into the iMac. I have checked the User & Groups --> LoginItems and the iChat application is unchecked. Am not having similar issue with Macbook Pro. Can anyone hel

  • Unable to Boot my MS-6215

    I am putting together this system on a new 6215 with a 1 GHz PIII, 256 MB RAM and a 80GB HDD. Everything was fine - I installed WinXP Home. Everithing was also fine. Today i changed the BIOS-Setting for Power-Up with Keyboard. Now, I couldn't get the

  • PSE 9 Slide Show error message

    I get message "The selected file cannot be played because your system does not have the required compressor/decompressor installed Codec) when I try to add a song from Itunes library to a slideshow. What doies this mean? How do I fix it? I tried in o

  • DVB S Caputure Tuner card

    I am searching various DVB-S tuner cards to capture free to air satellite channels. The card of choice at the moment is a Hauppauge Nova S plus. The output of that is Mpeg 2. My question is will Flash Media Encoder 2.5 pick up this as a valid input f

  • Incompatible with Powerpc error

    I recently purchased a new Retina Macbook Pro. I installed CS5.5 on it and I cannot open several of the apps (ie. Photoshop, Dreamweaver) because I am getting an error that says that they are no longer supported for powerpc computers. My computer is