Solved

move file command in sftp

Posted on 2009-05-14
4
484 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Ever wondered why Windows 8 and 10 don't seem to accept your GPO-based software deployment while Windows 7 does? Read on.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

758 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

22 Experts available now in Live!

Get 1:1 Help Now