Link to home
Start Free TrialLog in
Avatar of wormboy__6
wormboy__6

asked on

copying a file

How can i copy a file that is already open...

eg i want to make a copy of the file that is running.
It is possible doing it in windows...how can i do it in vb

do i use the copyfile api?
or what?
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcrider
mcrider

CopyFile Parameters


lpExistingFileName - Pointer to a null-terminated string that specifies the name of an existing file.
lpNewFileName - Pointer to a null-terminated string that specifies the name of the new file.
bFailIfExists - 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.

Cheers!
Avatar of wormboy__6

ASKER

cheers
Thanks for the points! Glad I could help!

Cheers!