Solved

move file command in sftp

Posted on 2009-05-14
4
485 Views
Last Modified: 2012-05-06
Is there a move command when using sftp?  i can sftp to the server, but only a rename command is available as far as i can tell.  i'm downloading a file and once i down load it, i would like to move the file onto a different directory (Processed) so that i don't have to see it every time i log back in.  I don't want to delet it since i may need to download it again incase my local one is lost.
0
Comment
Question by:nohurt
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
drgonzo1967 earned 500 total points
ID: 24384196
Hey nohurt.

From the following link...
<http://www.bitvise.com/files/sftpc-v4.14-commands.txt>

sftp> help move

USAGE: move remote-source-path remote-destination-path [-d]
DESCRIPTION: Move the specified remote file.
PARAMETERS:
 -d    When using wildcards, move matching directories as well.
SYNONYM: mv, rename, ren

Hope this helps!
-gonzo
0
 

Author Comment

by:nohurt
ID: 24386426
that link didn't work for me.
but, your comment on "help move" got me past it. it looks like the sftp server i connect to does not have the option for move.  just ls, put, get, and a few others.  but no move or copy is available.  i'll have to ask the people hosting it.
0
 

Author Closing Comment

by:nohurt
ID: 31581338
didn't get the answer i needed, but put me in the right direction.
0
 
LVL 1

Expert Comment

by:drgonzo1967
ID: 24394921
Hey nohurt,
Sorry about that link.  Looks like it added a %3E to the end.  Here is the link again just in case you did want a look.  Glad that helped!
http://www.bitvise.com/files/sftpc-v4.14-commands.txt

-gonzo
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As a long-time IT Professional, the most important skill I have developed and consider to be my most valuable tool is Effective Troubleshooting. Step through my problem-solving procedure in this 10-step guide adapted from The Universal Troubleshooti…
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now