I can't figure out how to get Qeditor to pop up win32.hlp when the F1 key is hit. It's been a while since I set it
Thanks. Too much work.
Trying to see the best logic to proceed here.
So if I want to copy this to a hidden and/or read-only file, do I use
SetFileAttributes and then proceed?
Or would it be easier to just delete the older file ?
This would be used on XP and I guess I should use CopyFileEx?
I probably oughta write in an error routine just in case it fails.
; copyf.asm File backup
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
File1 db "C:\word2000\wrdbckup.zip", 0 ; file names are case sensitive
; File1 is source file
File2 db "C:\work\wrdbckup.zip", 0
main proc ; copy it to make sure there's a copy there, then
; overwrite any existing file with the newest one
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 exists.
; If this parameter is TRUE and the new file already exists,
; the function fails. If this parameter is FALSE and the new file
; already exists, the function overwrites the existing file and succeeds.
invoke CopyFile, offset File1, offset File2, TRUE
invoke CopyFile, offset File1, offset File2, FALSE