Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Some questions about file copying
I'm using the API function to copy a file, but the problem is that it doesn't copy the file at all.
The goal is to create a folder (sourcecode completed), then copy a file supplied in the same directory as the exe resides in to the same parent dir that the folder was created in and rename the file to the folder adding an .info extension.
Yes I've tried as hard as I can to do this, but nothing seams to happen.
So any help would be highly aprechiated.
Here is the form paint procedure that copies the directory if the curdir string is empty:
if curdir = '' then curdir := form2.DirectoryListBox1.Directory;
This is the copy code I'm using:
Should copy the file, but either it generates a file not found or copies the files somewhere I don't have a clue about.