where does the "get" command in PSFTP (PuTTY) save the file?

I'm used to running ssh on a Unix command-line and am working for the first time with PuTTY on Windows. When I type

get file.txt

on the PSFTP command line, where does file.txt go? PSFTP returned:

remote:/somedirectories/file.txt => local:file.txt

but I can't find the file locally.

Thanks!

4 Answers

It saves it in the local working directory. You can see the local working directory by typing:

lpwd

You can change the local working directory using:

lcd \path\to\new\dir
1

If you need to do it the hard way try this...

defstr zz$, a7$, b7$
defint n7n
n7n=0
a7$="c:\documents\mycom\myshi\dir\fir\tre\somefile.bas"'filepath
for n= 0 to len(a7$) zz$=mid$(a7$, n, 1) if zz$="\" then n7n=n7n+1 end if
next n
for n=1 to n7n b7$ = field$(a7$, "\", n) & chr$(92) riched1.addstrings "lcd " & b7$ print b7$
next n
1
defstr zz$, a7$, b7$
defint n7n
n7n=0
a7$="c:\documents\mycom\myshi\dir\fir\tre\somefile.bas"'filepath
for n= 0 to len(a7$) zz$=mid$(a7$, n, 1) if zz$="\" then n7n=n7n+1 end if
next n
for n=1 to n7n b7$ = field$(a7$, "\", n) & chr$(92) stores in dum$ riched1.addstrings "lcd " & b7$ print b7$
next n
1

You can also right click PSFTP icon.

Then go to properties, set the path to a directory you prefer at local PC.

e.g. C:\download\psftp\

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like