Help With File Copy 
Author Message
 Help With File Copy

Why Wont This Copy Files Correctly
Say A (41.1 K) file is copied as A (17.0 K) File
What's Up With That!
This Code Looks Sound Any Help
note: Small files Like Txt, And Ini File copy OK
      But Larger Exe's Like The Size Above Don't

USERDATA$ = "C:\TEST1\"
BACKDATA$ = "C:\TEST2\"
NFILE$ = DIR$(USERDATA$,ZZ)
WHILE Len(NFILE$) > 0
source$ = USERDATA$ + NFILE$
dest$ = BACKDATA$ + NFILE$
CLOSE
OPEN source$ FOR BINARY AS #1
OPEN dest$ FOR BINARY AS #2
msg$ = SPACE$(LOF(1)) 'set msg$ string length to file length
GET #1, , msg$
LOCATE 14,25:COLOR 14, 9:PRINT "                                 "
LOCATE 14,27:COLOR 14, 9:PRINT USERDATA$;NFILE$
DELAY 0.3
PUT #2, , msg$
CLOSE 'both #1 and #2
NFILE$ = DIR$
WEND



Fri, 28 Nov 2003 14:33:44 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. CW2.003 File copy changes the date.....need a way to copy w/o date change

2. BUG: file copy copies links as links

3. Help File Copy

4. Help Copy Files

5. Need help copying a file to the printer

6. help copy file

7. Help on copy file

8. Help, need to copy a 1474560 (1.404M) byte file to floppy disk

9. Need help - expect script: Copy a file from tftp server to cisco router flash

10. HELP: how to copy binary files?

11. searching and copying text in a file - please help

12. Please Help: Copying files using GS-VW

 

 
Powered by phpBB® Forum Software