How can copy or move files by my AI plugin in Leopard??

Advertisement
How can copy or move files by my AI plugin in Leopard??
Thanks!
hanyang
Advertisement

Replay

You can use "execve". This example will copy /tmp/file1 to /tmp/file2<br /><br />#include <stdio.h><br />#include <sys/types.h><br />#include <unistd.h><br /><br />pid_t forkPid;<br /><br />char *childargs[] = { "cp", "/tmp/file1", "/tmp/file2", 0 };<br /><br />if( ( forkPid = fork() ) == 0 ) {<br /><br />  execve( "/bin/cp", childargs, NULL );<br /><br />} else if( forkPid > 0 ) {<br /><br />  printf( "Success!" );<br /><br />} else {<br /><br />  printf( "Can't fork" );<br /><br />}<br /><br />For more information, man execve.

How can I transfer .mov files to my iPad?

How can I transfer .mov files to my iPad?If it's on a SD card in your camera, you cau use the camera connection kit, either by connecting the camera or inserting the SD card. If it's on your computer, you can use a USB flash drive & the camera connec

How can I play mov file on ipad2?

How can I play mov file on ipd2? Anyone? Thanks.I imported (using Photos app) a .mov file from my Nikon camera. Tap the icon and it played.  Cheers, TomRead other 4 answers

How can I save .mov file as another .mov file after trim from Pre9?

I would have thought this would be simple.  Just like I can crop a still image in Photoshop and save it with a new name (or the same name), I expected to be able to trim or split an .mov file in Premiere Elements 9 and save the resulting file(s) unde

How can I transfer mov files from my iphone4 to PC without corrupting them?

I transferred my photos and videos from my iphone4 to my PC to make more room on my phone. After deleting the files from my phone, I realized that the mov files are corrupted. The videos mostly show grey blotches with no sound. I have tried syncing t

How can I reduce movie file size?

In the previous version of iMovie it was possible to significantly reduce file size in order to post it on a webpage.  I'm not seeing those options in the new version of iMovie.  Am I missing something?  It's simply impractical to try to post very la

I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?Mail window may be in the Full Screen mode. Move the mouse pointer to the top right corner of the Mail window and hold it there. Menu

Can't copy or move files

My system is Windows 8, now can't copy or move files. I can open a text file and edit it, then save it. That means it can read form and write to HD, but if I try to copy a file to another folder, The File Exploer will be closed automatically.Gingyixi

Error 8062 when I try to copy or move files on my macbook: "This operation could not be completed because an unexpected error occurred (error code -8062)". Can even not install new software now!!

Since a few days when I try to copy or move files on my macbook, I often get an error message saying "This operation could not be completed because an unexpected error occured (error code -8062)". And then it just quits the copy or move. I searc

How can I import HDV-Files from a CF-Card to Final cut Pro 5.1.4

How can I import HDV-Files from a CF-Card (recorded with the Sony HVR Z 7E) to Final cut Pro Version 5.1.4 – is this possible at all? I managed to import the files to Premiere, but it was just a test. I am working at a very huge documentary project w

How can I transfer movies from one apple to another

How can I transfer movies form my macbook pro to my apple air?If you have a wireless network, you can enable file sharing with each and transfer select data from one to the other via your wi-fi network. Or if you have an external drive used for backu

I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea

How can I see what file's are in  a directory

I'm want to make a program for brosing the harddisk and copying and editing file's. I already can copy them but: How can I see what file's are in a directory and how can I see what subdirectory's are in a directory so I can show them to the user? I d

How to copy a pdf file from a windows PC to an iPad?

how to copy a pdf file from a windows PC to an iPad?You can use iTunes to sync the file to the iPad using File Sharing. About File Sharing http://support.apple.com/kb/ht4094Read other 4 answers

How can I find movies created in past versions of iMovie?  They are still on you tube but I want the original higher quality versions and I can't find them anymore.

How can I find movies created in past versions of iMovie?  They are still on you tube but I want the original higher quality versions and I can't find them anymore.Paul - I'm sorry you've lost files, but when you set up an account as Guest, there's a

How can optimize current movie to have it more smoth motion

How can optimize current movie to have it more smoth motion? See attachemt to ftp... Bitmaps little jumps, need to have it more smoth. Ideas? AttachedI don't see any small jumps in your file at all. I think it runs smooth as it is. Though, it all boi

How can I read a file directly please?

Hello everyone, How can I read a file directly from a script please? I tried the insert into ... values but it does not work. I really have to read the file instead of entering the data via the interface. Does Oracle have a copy command? Each file li

HT3523 I can play an .mov file but cannot open it to move it to another drive/disc/etc. When we try to open it, we get a message that says "The movie file for "beanmine.mov" cannot be found. Without this file, the movie cannot play properly."

We can play a .mov file (a full-length film created in final cut pro) but cannot actually open it in QuickTime. We get the error message saying that a file is missing, and the movie can't play properly without the file. The thing is, we can play the

How can I play .avi files, how can I play .avi files

how can I play >avi files on Mavericks?This did solve my question.  I'm not happy with the actions necessary to get the avi file to play, but it works.  I was delivering a presentation with an embedded avi video file to a workplace audience and all o

How do I quickly move files from old iMac to new one?

how do I quickly move files from old iMac to a new one?How many files, and what total size? To move ALL your files from an old Mac, you would use Migration Assistant, using either an Ethernet or Firewire connection. It's not quick, though. To move ju