Go Back   FlashFXP Forums > >

FlashFXP v5.x Public Beta Please direct all comments, suggestions, bug reports, and feedback for public beta releases to this forum.

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-09-2015, 11:33 AM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I was not aware of this command for ioFTPD to create symlinks, and this got me thinking that perhaps the best way to support this is entirely via custom command scripting.

Here's what I've come up, it requires the dev build below which implements a new $selectfolder() token modifier for the /set command.

Download the dev build
http://www.flashfxp.com/testr/dev-bu...5.1.0.3849.zip

Unzip FlashFXP.exe into your current FlashFXP folder replacing the existing FlashFXP.exe

The new token modifier is used with the /set command as the value, the user is prompted with a folder select dialog.

/set @dst@ $selectfolder("<title>","<label>")

The result of the dialog is set to @dst@ which can be referenced later in the script, if the user cancels then the script is aborted.

Create a new raw command via > Commands > Edit Commands

Now in the raw command script for ioFTPD:
Code:
#This script is command specific to ioFTPD servers
#only allow this command to run if the remote browser is active
/require remote
# prompt the user to select the target folder
/set @dst@ $selectfolder("Create SymLink in Folder", "Select Folder:")
#For-each item selected 
{
    #perform command
    site chattr +l %f @dst@%f
}

Last edited by bigstar; 06-09-2015 at 12:00 PM.
bigstar is offline  
 

Tags
move, target, feature, toggle, demand, e.g, create, symlink, ffxp, popup

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:07 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)