Multiple windows

by lawgin (no login)

If I use the code below to copy 25 files from one directory to another with qb4.5, it performs all 25 operations in the same CMD window. With qb64 the window is quickly opened and closed 25 times. Is there any way to get qb64 to use the same window?

FOR n = 1 TO 25
SHELL "cmd /c copy c:\aaa\file" + LTRIM$(STR$(n)) + ".txt c:\bbb"
NEXT

Posted on Sep 21, 2011, 3:05 PM

Respond to this message   

Return to Index


Response TitleAuthor and Date
* Not currently, but you could _HIDE it all. QB64 uses CMD /C already. on Sep 21
 it would seem that it doesn't... on Sep 22
 Seems to work faster toolawgin on Sep 22
 you're right... on Oct 5
*write the copy commands to a bat file, then shell to the bat file. on Sep 22
 I don't think that would worklawgin on Sep 22
  Re: I don't think that would work on Sep 22
   OKlawgin on Sep 23
    * There is a way to do it all in a batch, but it isn't easy. on Oct 5
     Re: * There is a way to do it all in a batch, but it isn't easy.Naoto on Nov 5
     re: isn't easy? on Apr 20