Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Copying (or moving) a file

Posted on 2006-04-08
4
Medium Priority
?
141 Views
Last Modified: 2010-08-05
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.
0
Comment
Question by:shrldu
2 Comments
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 200 total points
ID: 16407868
Tell us how do you specify the folders and make sure that you use absolute paths ('C:\folder1\folder2\'), not relative ('\folder2').
0
 

Author Comment

by:shrldu
ID: 16408112
Sorry, my simple and stupid error. Thanks for your comment! :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question