Page 1 of 1

FTP panel

Posted: 08 May 2008 09:59
by Walrez
Hi,
Based on TheQwerty's idea of creating an html page for a second panel, I played a bit to create a -useless- ftp client.

"FTP : ftp"
input $address, "Server Address:";
open "cmd" /c echo ^<html^> ^<script language="javascript"^>document.location="ftp://$address"^</script^> ^</html^> ><curpath>\ftp.html;
msg "Press Enter to access the requested FTP location";
goto "<curpath>\ftp.html";
#174;

Some notes:

- Instead of using the clipboard to create a new file, which always stops to rename it, I use the command line "echo" statement.

- The msg "Press Enter..." is necessary, otherwise the goto statement is executed before echo has a chance to create the html file, and an error message is displayed (any way to generate a pause?)

- The format for Address would be "username:password@serveraddress"

- The only way to make it a little useful, is to copy the files to upload to the clipboard before executing the query. Then, when the ftp is show, right-click -> paste.
Same for downloading. It's a one time operation, since the preview panel will display another file when click on the main panel.

If there was a setting to "lock" the preview panel, it could probably help. Just an experiment anyway. :wink:

Re: FTP panel

Posted: 12 May 2008 08:54
by admin
Nice experiment! Clever use of cmd echo... :D

Yes, if the Preview could be locked you could even -- clumsily -- work with it.

Re: FTP panel

Posted: 26 Jun 2009 12:02
by Stefan
Walrez wrote: (any way to generate a pause?)
Hi, is there an scripting commando like pause, wait or sleep?
Just now i use
while $a <100000 {incr $a};
to wait till my share is mapped before i can goto.

TIA

Re: FTP panel

Posted: 26 Jun 2009 12:07
by admin
Yes, a non-documented one: wait msecs

example:
wait 1000; //wait 1 second

Re: FTP panel

Posted: 26 Jun 2009 12:28
by Stefan
Fine :P Thank you.