FTP panel
Posted: 08 May 2008 09:59
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.
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.