View previous topic :: View next topic |
Author |
Message |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Thu Sep 17, 2009 10:00 am Post subject: open a new command promt |
|
|
Hello,
within my application I start another program using the cissue command. The code look like this:
Code: |
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 |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Thu Sep 17, 2009 10:14 am Post subject: |
|
|
Try experimenting with START_PROCESS@ and START_PPROCESS@.
You might also be able to use these or CISSUE with "cmd.exe /p something.bat" |
|
Back to top |
|
 |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Thu Sep 17, 2009 11:00 am Post subject: |
|
|
Hi Paul,
I tried the following:
Code: |
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 |
|
Back to top |
|
 |
|