Silverfrost Forums

Welcome to our forums

open a new command promt

17 Sep 2009 9:00 #4970

Hello,

within my application I start another program using the cissue command. The code look like this:

      call change_mlo_file(Ld_Lq_Up)
      call cissue('startwfe.bat',i)
      write(*,'(1X,A)') 'Read BCH ...' 
      call read_BCH_file(Ld_Lq_Up)      
      call cissue('delete.bat',i)

However, the program (another exe) I call writes data in the same command prompt (window) as ma main program. Is there a possibility that the program I calls, is executed in a new window (command promt)?

Regards Jacaues

17 Sep 2009 9:14 #4971

Try experimenting with START_PROCESS@ and START_PPROCESS@.

You might also be able to use these or CISSUE with 'cmd.exe /p something.bat'

17 Sep 2009 10:00 #4972

Hi Paul,

I tried the following:

program cmdwdn
  implicit none
  integer :: ifail
  
  write(*,*) 'Call the executable'
  call cissue('cmd.exe /p notepad.exe',ifail)

  ifail = start_process@('notepad.exe','')

end program

In both cases the the executable I called is executed in the current window.

Jacques

Please login to reply.