home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
library
/
sampler0
/
copysave.cor
< prev
next >
Wrap
Text File
|
1987-03-19
|
1KB
|
31 lines
A "bug" in COPYSAFE.COM (Programming/Utilities Volume 6, Number 6) resulted
in the program failing to warn the user of the existence of a same-named
target file when he was renaming a source file at the same time he was
copying it. If you are working with COPYSAFE.ASM, the fix is easy:
Old Version:
CK_TARGET: MOV DI,PARA2_START ;Is second a path request?
CALL CK_PATH
JC CK_EXIST ;If no, check exist, else append
New Version:
CK_TARGET: MOV DI,PARA2_START ;Is second a path request?
CALL CK_PATH
JNC APPEND ;If path, append the filename.
CALL CK_GLOBAL
CMP GLOBAL_FLAG,1
JZ CK_EXIST
CALL MATCH ;Else, it is a renamed file.
JMP EXIT ;Display and exit.
You can either make these changes manually and reassemble, or you can
download the corrected COPYSAFE.ASM entirely.
Unfortunately, the above changes ripple through hundreds of instructions
in the BASIC listing, so if you are creating COPYSAFE.COM by running
COPYSAFE.BAS there is no alternative to downloading the entire corrected
COPYSAFE.BAS listing and running it.
Fully corrected .COM, .ASM, and .BAS files for COPYSAFE are now on PC-IRS.