Re: exec() and *.bat

From: Wim Hoogendam (wim_at_nospam.nl)
Date: 09/05/04


Date: Sun, 5 Sep 2004 09:01:16 +0200

I think you need to start a command box to run the bat file.

try something like this:

Runtime.getRuntime().exec("cmd /c start run.bat")

Wim

"mirko" <hmmm@mhhhhh.kom> wrote in message
news:charvq$js0$1@bagan.srce.hr...
> can anyone resolve my problem?
>
> Runtime.getRuntime().exec("run.bat")
>
> it does not start the program in windows??why ?it only starts the *.exe
> files
>
>



Relevant Pages

  • RE: VPN & Mapped Network drives
    ... "Wim" wrote: ... > you is that I just type the servername in the command box. ... how can I create a .bat file? ... >>> screen coming up I guess) A domain controller could not be found to verify ...
    (microsoft.public.windowsxp.network_web)
  • Re: ie6sp1 : Repair Function Blocked - Anyone know of a fix?
    ... for command itself not to the thing it is being used to execute. ... then modifying it to do the call and append, then execute the bat file. ... Then edit dlls.bat to prefix each line with getvers and append>>versions.txt ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Need DTSRUN Utility to complete before proceeding
    ... > Also would like the bat file to fail if the DTSRUN utility fail, ... discerned at the command line prodessor. ... same when run in the scheduler as when they're run on the server under ... If you write a BAT file, ...
    (microsoft.public.sqlserver.dts)
  • Re: How do I...
    ... I initiated the BAT file from the Registry without any ... trying to get the "DOS CMD.EXE" window to either run ... >> file that contained the command worked. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: VFP 6 - problem with RUN command
    ... I think you simply need to de-bug your .bat file. ... Toos VFP to the side for ... The PAUSE command, however, functions beautifully now. ... and a CALL command to another batch file doesn't work, ...
    (microsoft.public.fox.programmer.exchange)