This is a discussion on Code doesn't work if file is in a hidden directory - Programmer ; I have been out of programming for a while, so please take it easy on me. This code works fine if the file is not in a hidden directory. Is this a XP issue ? Thanks. ; copyf.asm Copy a ...
I have been out of programming for a while, so please take
it easy on me.
This code works fine if the file is not in a hidden
directory. Is this a XP issue ?
; copyf.asm Copy a file over an existing file
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
File1 db "C:\Supplies\Lab_Order.xls", 0 ; file names
are case sensitive
File2 db "C:\spare\Lab_Order.xls", 0
invoke GetCL,1,ADDR buffer
; Specifies how this operation is to proceed if a file
of the same
; name as that specified by lpNewFileName already
; If this parameter is TRUE and the new file already
; the function fails. If this parameter is FALSE and the
; already exists, the function overwrites the existing
file and succeeds.
invoke CopyFile, offset File1, offset File2, FALSE