How can I automate deleting new files from a directory if their ftp transfer was successful?
September 17, 2004 9:47 AM
Subscribe
Calling all
Nerds Automation masterminds. I record radio shows on a weekly basis using a hauappage WinTV card in an XP box (I use the
Axife frontend). I'm trying to automate my whole process to the point where all I have to do is plug my ipod into my powerbook. I have
scripted ftp.exe to send the resultant MP3 files from the XP box to my powerbook once daily. On the powerbook, I have a folder action set to run a script that adds any files that appear to itunes, and then delete the files. The only thing I haven't got my head around is how to automatically delete the files from the XP directory, BUT ONLY if the ftp transfer was successful. Suggestions?
posted by adamkempa to computers & internet (6 comments total)
Although, could you script it from the Mac end? Run an FTP server on your XP box, have the Mac pull the mp3s down? Then it knows if it got it or not because the file gets created.
posted by SpecialK at 10:24 AM on September 17, 2004