Xojo Conferences
XDCMay2019MiamiUSA

FTP to save dialog? (Real Studio network user group Mailinglist archive)

Back to the thread list
Next thread: Re: Quick, easy (?) class question...


Re: [OT] Large Screenshots   -   Rubber Chicken Software Co.
  FTP to save dialog?   -   wagnerj proaxis.com
   Re: FTP to save dialog?   -   wagnerj proaxis.com
   Re: FTP to save dialog?   -   Tim Jones

FTP to save dialog?
Date: 30.11.09 20:01 (Mon, 30 Nov 2009 11:01:55 -0800 (PST))
From: wagnerj proaxis.com
Greetings -

I am trying to make a GUI to "simplify" the transfer of a database file
from an ethernet remote device to the host machine. sftp seems to be the
way to do it. However, I would like the user to be able to specify the
destination on the local machine. It appears that (s)ftp either copies to
the "current" directory of the local machine or to a directory specified
as part of the ftp "get" command.

If this is done AFTER the ftp transfer, then it becomes a copy or move
from one location to another on the user's machine, and I don't see any
(simple) way to use a native save or save-as dialog as part of this
process. Perhaps the data file (might be a meg or more) could be "loaded"
into the application. but not sure how to do that in a sensible way to be
accessible for a save.

If this is done BEFORE the ftp file transfer, then there is no file to
reference in a native save or save-as dialog.

Pointers, ideas, suggestions are welcome!

Thanks
Jim Wagner
Oregon State University
Dept. of Bio. & Eco. Engineering

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: FTP to save dialog?
Date: 30.11.09 20:24 (Mon, 30 Nov 2009 11:24:09 -0800 (PST))
From: wagnerj proaxis.com
> On Nov 30, 2009, at 12:01 PM, <email address removed> wrote:
>
>> I am trying to make a GUI to "simplify" the transfer of a database
>> file from an ethernet remote device to the host machine. sftp seems
>> to be the way to do it. However, I would like the user to be able to
>> specify the destination on the local machine. It appears that
>> (s)ftp either copies to the "current" directory of the local machine
>> or to a directory specified as part of the ftp "get" command.
>
> Ask the user for the destination folder and then call "lcd " +
> theUserFolder.ShellPath in your sftp shell process before you send the
> get command.
>
> HTH,
> Tim
>
Hmmm, after some further thought, I think I see how that will work.

Thanks,
Jim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: FTP to save dialog?
Date: 30.11.09 20:10 (Mon, 30 Nov 2009 12:10:42 -0700)
From: Tim Jones
On Nov 30, 2009, at 12:01 PM, <email address removed> wrote:

> Greetings -
>
> I am trying to make a GUI to "simplify" the transfer of a database
> file from an ethernet remote device to the host machine. sftp seems
> to be the way to do it. However, I would like the user to be able to
> specify the destination on the local machine. It appears that
> (s)ftp either copies to the "current" directory of the local machine
> or to a directory specified as part of the ftp "get" command.
>
> If this is done AFTER the ftp transfer, then it becomes a copy or
> move from one location to another on the user's machine, and I don't
> see any (simple) way to use a native save or save-as dialog as part
> of this process. Perhaps the data file (might be a meg or more)
> could be "loaded" into the application. but not sure how to do that
> in a sensible way to be accessible for a save.
>
> If this is done BEFORE the ftp file transfer, then there is no file
> to reference in a native save or save-as dialog.
>
> Pointers, ideas, suggestions are welcome!

Ask the user for the destination folder and then call "lcd " +
theUserFolder.ShellPath in your sftp shell process before you send the
get command.

HTH,
Tim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>