RE: CFFTP copy command? - Found word(s) mp3 in the Text body

2010-02-11 Thread Paul Alkema

Hey James,
If your trying to copy to an outside server you could use CFFTP's
action=putfile command.

After opening a connection I use something like this...

cfftp 
action=putfile 
connection=MyConnection 
localfile=local path of file to copy 
remotefile=remote path of where to copy too 
transfermode=binary 
stoponerror=no 
timeout=3600 
failifexists=no 
retrycount=10




If you just want to copy it locally form one folder to another use cffile's
action=copy command.
http://livedocs.adobe.com/coldfusion/8/Tags_f_04.html



-Original Message-
From: James Wolfe [mailto:james-cft...@goqs.com] 
Sent: Thursday, February 11, 2010 12:29 PM
To: cf-talk
Subject: CFFTP copy command? - Found word(s) mp3 in the Text body


Is there any way to copy a file on the FTP server from 

   /directory1/fileName.mp3 
   to 
   /directory2/fileName.mp3

without downloading it to my machine?

Again, I want a COPY (not a move).

Thanks,
James 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330607
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFFTP copy command? - Found word(s) mp3 in the Text body

2010-02-11 Thread brad

 If your trying to copy to an outside server you could use CFFTP's
 action=putfile command.

Since he said without downloading it to my machine I think he means
both the source and the destination are on the FTP server.

 If you just want to copy it locally form one folder to another use cffile's
 action=copy command.

Again, cffile only works on a local file system-- not an FTP server.

@James, as far as I know you are out of luck unless you have some other
way to access the remote server (SSH, etc).  I refrained from answering
originally to see if there really was a way to do that.  As basic as a
copy from a remote location to another remote location seems- I think
the fact of the matter is that FTP was designed to move files between a
local and remote endpoints-- not to comprehensively manage remote files.

~Brad





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330610
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP copy command? - Found word(s) mp3 in the Text body

2010-02-11 Thread denstar

The ftp command rename should do it, if it's exposed to the tag (I
don't do ftp, so don't know).

If it isn't, I guess it's java-land for you!  (Or just some other solution.)

:denny

-- 
Humility is truth.
Desiderius Erasmus

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330615
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP copy command? - Found word(s) mp3 in the Text body

2010-02-11 Thread James Wolfe

The rename command is the same as a move. 

Thanks anyway.

The ftp command rename should do it, if it's exposed to the tag (I
don't do ftp, so don't know).

If it isn't, I guess it's java-land for you!  (Or just some other solution.)

:denny

-- 
Humility is truth.
Desiderius Erasmus 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330618
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFFTP copy command? - Found word(s) mp3 in the Text body

2010-02-11 Thread James Wolfe

putfile copies a file from the local machine to the target FTP server. I want 
to copy a file that is already on the target FTP server to a different location 
on the same server.

Again, I want a COPY not a move. I want, when I am done, to have TWO copies of 
the file on the foreign server and zero traffic between my computer and the 
server except the commands.

-james

Hey James,
If your trying to copy to an outside server you could use CFFTP's
action=putfile command.

After opening a connection I use something like this...

cfftp 
   action=putfile 
   connection=MyConnection 
   localfile=local path of file to copy 
   remotefile=remote path of where to copy too 
   transfermode=binary 
   stoponerror=no 
   timeout=3600 
   failifexists=no 
   retrycount=10




If you just want to copy it locally form one folder to another use cffile's
action=copy command.
http://livedocs.adobe.com/coldfusion/8/Tags_f_04.html



Is there any way to copy a file on the FTP server from 

   /directory1/fileName.mp3 
   to 
   /directory2/fileName.mp3

without downloading it to my machine?

Again, I want a COPY (not a move).

Thanks,
James 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330619
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFFTP copy command? - Found word(s) mp3 in the Text body

2010-02-11 Thread denstar

Ah, eyah, me no use FTP much anymore, sorry, it must effect my reading
comp skills.  :)

Here's the low-down:

http://stackoverflow.com/questions/960501/copy-or-move-a-file-from-one-ftp-server-to-another

:Den

-- 
If you keep thinking about what you want to do or what you hope will
happen, you don't do it, and it won't happen.
Desiderius Erasmus


On Thu, Feb 11, 2010 at 12:55 PM, James Wolfe james-cft...@goqs.com wrote:

 The rename command is the same as a move.

 Thanks anyway.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330622
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4