Funky Beast wrote:
bobby wrote:
Luis R. Hilario B. wrote:

FPC is crossplatform:
http://www.freepascal.org/docs-html/rtl/sysutils/filenameroutines.html


2005/12/21, bobby <[EMAIL PROTECTED]>:
hi to all,

I'm making a program to sort a collection of specific files.
Now, is there a crossplatform function to move/copy/rename files?
If not, how can I do it for Win32?

regards
Boban Spasic


Thanks, but I have already saw that, but no help there for me, there is no copy/move file function, just rename.
Any other suggestion?

Boban

take a look at lazarus/lcl/fileutil.pas
in the lazarus source.

Funky Beast

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Found CopyFile here, but it throws an exception every time I use it.
Do the folder must exists for target file (would it be automatically created), or I must care about creating it? If the exception is thrown because of non-existing folder, do I need to create the whole folder-structure in separate steps (one command to create root folder, 2nd command to create subfolder1 etc), or I can create something like this "folder\subfolder\sub-subfolder" in one step if no one of the folders in the path already exists?

I apologize for taking your time, I would find the solution myself, but my mouse is died before 5 minutes, and I'm not very good with keyboard shortcuts... :( It's a real pain to test my application that needs 10 steps/clicks to test the copy/move, with no keyboard-shortcuts defined. And so for every build after changing a line of code.

Boban
_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to