G
Guest
In order to make a copy of the open database, I use the following code:
CopyString = "CMD.EXE /C COPY " & SourceFile & _
" " & DestinationFile
Call Shell(CopyString, 0)
It works fine. However, in case there is an error, no message appears. That
is, if the destination is in a memory key or a diskette, and there is no
memory key inserted, or not enough space in the diskette, the copy is not
made and there is no error message. I wonder why that happens.
(Before, in Windows 98, I used a slightly different code, which doesn't work
in Windows XP. Instead of CMD.EXE /C COPY, I used COMMAND.COM /C COPY - and
then the error messages worked!)
Any help would be appreciated.
CopyString = "CMD.EXE /C COPY " & SourceFile & _
" " & DestinationFile
Call Shell(CopyString, 0)
It works fine. However, in case there is an error, no message appears. That
is, if the destination is in a memory key or a diskette, and there is no
memory key inserted, or not enough space in the diskette, the copy is not
made and there is no error message. I wonder why that happens.
(Before, in Windows 98, I used a slightly different code, which doesn't work
in Windows XP. Instead of CMD.EXE /C COPY, I used COMMAND.COM /C COPY - and
then the error messages worked!)
Any help would be appreciated.