Hi guys,
may be I'm getting older, can't help. The following program
works fine if C:\DEF.DAT doesn't exist (f.ex., starting the app
for the first time), but if C:\DEF.DAT already exits (f.ex.,
starting the app repeatedly), the app fails with ERROR 75.
However, PB-help told me that "If the destination file already
exists, it will be overwritten". That's it:
Now, substituting PB-FileCopy by API-CopyFile
(CopyFile "C:\ABC.DAT", "C:\DEF.DAT", 0), the app works
fine (and repeatedly works fine without ERROR 75!). Another
way is to KILL C:\DEF.DAT before PB-FileCopy. Rebooting doesn't
help. Don't know what's my problem with FileCopy ....
I'm using NT4 (build 1381, SP4) and PB6. Should I buy a new PC
right away?
Cheers, Hanns.
may be I'm getting older, can't help. The following program
works fine if C:\DEF.DAT doesn't exist (f.ex., starting the app
for the first time), but if C:\DEF.DAT already exits (f.ex.,
starting the app repeatedly), the app fails with ERROR 75.
However, PB-help told me that "If the destination file already
exists, it will be overwritten". That's it:
Code:
#Compile Exe #Register None #Include "Win32Api.INC" Function PbMain () As Long On Error Goto 1 FileCopy "C:\ABC.DAT", "C:\DEF.DAT" Msgbox "Ok." Exit Function 1:: Msgbox "Error"+Str$(ERR) End Function
(CopyFile "C:\ABC.DAT", "C:\DEF.DAT", 0), the app works
fine (and repeatedly works fine without ERROR 75!). Another
way is to KILL C:\DEF.DAT before PB-FileCopy. Rebooting doesn't
help. Don't know what's my problem with FileCopy ....
I'm using NT4 (build 1381, SP4) and PB6. Should I buy a new PC
right away?

Cheers, Hanns.
Comment