LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to move files programmatically (https://www.linuxquestions.org/questions/linux-general-1/how-to-move-files-programmatically-706881/)

meganya 02-23-2009 12:02 PM

How to move files programmatically
 
Hi,

i am using a Win32 API on windows to move files from one location to another. Is there an API on Linux too instead of using the system call - system(mv).

Pls lemme know.

colucix 02-23-2009 12:07 PM

Hi and welcome to LQ! :)

Maybe using shell scripting? If you describe what do you want to achieve in more details, we can be more helpful. It can be useful if you edit your LQ profile to include the Linux distribution you are running on your machine, so that it will be displayed under your nickname in each post.

catkin 02-23-2009 01:16 PM

What programming environment are you using system(mv) in?

GazL 02-23-2009 02:50 PM

rename(2)

Only works within the same mountpoint though.


All times are GMT -5. The time now is 03:40 PM.