Link to home
Start Free TrialLog in
Avatar of shrldu
shrldu

asked on

Copying (or moving) a file

I try to copy a file using CopyFile function:

Windows.CopyFile(PChar(SourceFile), PChar(TargetFile), True);

The file is copied, but not to a target folder, but to the SourceFile folder. The same is when I try MoveFile().

The folders are specified correctely. I use D6 and WinXP.
ASKER CERTIFIED SOLUTION
Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image

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 shrldu
shrldu

ASKER

Sorry, my simple and stupid error. Thanks for your comment! :)