replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - open a new command promt
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

open a new command promt

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
jjgermis



Joined: 21 Jun 2006
Posts: 404
Location: N�rnberg, Germany

PostPosted: Thu Sep 17, 2009 10:00 am    Post subject: open a new command promt Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8211
Location: Salford, UK

PostPosted: Thu Sep 17, 2009 10:14 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
jjgermis



Joined: 21 Jun 2006
Posts: 404
Location: N�rnberg, Germany

PostPosted: Thu Sep 17, 2009 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group