[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2009-08-07T20:01:43-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/1873 2009-08-07T20:01:43-05:00 2009-08-07T20:01:43-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19630#p19630 <![CDATA[Copy Files Using QB45]]> Statistics: Posted by burger2227 — Fri Aug 07, 2009 8:01 pm


]]>
2009-08-07T19:01:51-05:00 2009-08-07T19:01:51-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19629#p19629 <![CDATA[Copy Files Using QB45]]>
? what have I created.... ?
You did not create anything, but for sure you did wake up something :lol:

Statistics: Posted by bungytheworm — Fri Aug 07, 2009 7:01 pm


]]>
2009-08-07T10:19:53-05:00 2009-08-07T10:19:53-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19624#p19624 <![CDATA[Copy Files Using QB45]]>
:)

Statistics: Posted by IanM — Fri Aug 07, 2009 10:19 am


]]>
2009-07-31T13:24:24-05:00 2009-07-31T13:24:24-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19608#p19608 <![CDATA[Copy Files Using QB45]]>

Statistics: Posted by Seb McClouth — Fri Jul 31, 2009 1:24 pm


]]>
2009-07-31T07:02:22-05:00 2009-07-31T07:02:22-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19607#p19607 <![CDATA[Copy Files Using QB45]]>
I'm not a dummy, I'm just intellectually challenged. :lol:

Statistics: Posted by MystikShadows — Fri Jul 31, 2009 7:02 am


]]>
2009-07-30T13:55:13-05:00 2009-07-30T13:55:13-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19606#p19606 <![CDATA[Copy Files Using QB45]]> Statistics: Posted by Seb McClouth — Thu Jul 30, 2009 1:55 pm


]]>
2009-07-30T13:32:16-05:00 2009-07-30T13:32:16-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19605#p19605 <![CDATA[Copy Files Using QB45]]>
I'm glad you took my post as a joke and not an insult!

Ted

Statistics: Posted by burger2227 — Thu Jul 30, 2009 1:32 pm


]]>
2009-07-30T12:33:41-05:00 2009-07-30T12:33:41-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19604#p19604 <![CDATA[Copy Files Using QB45]]>
Add this to your list Moneo:

If you are ahead of me, lead.
If you are behind me, follow.
If you are not doing anything,
Get out of the way.
If you posted something 3 years ago,
who is the dummy for answering it? :wink:
You're right, Ted. That makes me a dummy. I went by the date of the last post, and didn't check the date of the original thread.

Well, live and learn.

Regards..... Moneo

Statistics: Posted by moneo — Thu Jul 30, 2009 12:33 pm


]]>
2009-07-29T14:48:18-05:00 2009-07-29T14:48:18-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19602#p19602 <![CDATA[Copy Files Using QB45]]>
If you are ahead of me, lead.
If you are behind me, follow.
If you are not doing anything,
Get out of the way.
If you posted something 3 years ago,
who is the dummy for answering it? :wink:

Statistics: Posted by burger2227 — Wed Jul 29, 2009 2:48 pm


]]>
2009-07-29T12:02:01-05:00 2009-07-29T12:02:01-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19601#p19601 <![CDATA[Copy Files Using QB45]]>
Back in 1990, I was confronted with the need to copy files from within a QB program. I played around with different methods that actually read and wrote the records from within the program. I discovered that there there were several sticky little problems that caused the filles not to be exactly the same. I haven't tried Plasma's version, but I have a feeling that this would have some of these problems.

Finally, I decided to do SHELL with the corresponding COPY command, as IanM suggests, and I have never had a problem since. I like this approach because you hand over the responsibility for the COPY, to DOS. A COPY, just like DOS does, is really what you want, so why try to emulate it.

Regards..... Moneo

Statistics: Posted by moneo — Wed Jul 29, 2009 12:02 pm


]]>
2009-07-28T05:20:14-05:00 2009-07-28T05:20:14-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=19599#p19599 <![CDATA[Thank You]]> Statistics: Posted by IanM — Tue Jul 28, 2009 5:20 am


]]>
2006-11-09T13:17:00-05:00 2006-11-09T13:17:00-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=13149#p13149 <![CDATA[Copy Files Using QB45]]>

Code:

DECLARE SUB CopyFile (From$, To$)SUB CopyFile (From$, To$)  ' Open the input file in binary mode  InFile = FREEFILE  OPEN From$ FOR BINARY AS #InFile  ' Open the output file  ' (truncate it if it exists)  OutFile = FREEFILE  OPEN To$ FOR OUTPUT AS #OutFile  CLOSE #OutFile  ' Reopen the output file in binary mode  OPEN To$ FOR BINARY AS #OutFile  ' Copy the file  DO WHILE NOT EOF(InFile)    Buffer$ = INPUT$(4096, 1)    PUT #OutFile, , Buffer$  LOOP  ' Close the files  CLOSE #OutFile  CLOSE #InFileEND SUB

Statistics: Posted by Plasma — Thu Nov 09, 2006 1:17 pm


]]>
2006-11-09T11:12:33-05:00 2006-11-09T11:12:33-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=13148#p13148 <![CDATA[Copy Files Using QB45]]> Statistics: Posted by sid6.7 — Thu Nov 09, 2006 11:12 am


]]>
2006-11-09T08:09:21-05:00 2006-11-09T08:09:21-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=13147#p13147 <![CDATA[Copy Files Using QB45]]>
I assembled a String$ which was in the format "copy folder1/file1 folder2/file2"

then used SHELL String$

and things seem ok :)


if there is a better way please let me know.

Statistics: Posted by IanM — Thu Nov 09, 2006 8:09 am


]]>
2006-11-09T05:40:57-05:00 2006-11-09T05:40:57-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=13146#p13146 <![CDATA[Copy Files Using QB45]]>
I can make files and folders - just not copy files...yet

any help or suggestions would be appreciated.

thank you.

Statistics: Posted by IanM — Thu Nov 09, 2006 5:40 am


]]>