Go Back   FlashFXP Forums > >

Custom Commands Download, share, or get help creating your own.

Closed Thread
 
Thread Tools Display Modes
Old 03-07-2017, 03:57 PM   #1
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default [script] Use WinRAR to compress folder and then delete it

Code:
# require the local browser, otherwise abort the script
/require local

# display confirmation prompt
/confirm "Compress "%f" and then delete it?"

# display busybox to allow the user to abort the script
/busybox

# for-each item selected perform the following commands
{
    #execute WinRAR with desired flags, adjust these flags to suite your own needs
    /run "C:\Program Files\WinRAR\WinRAR.exe" "%lp" a -ibck -rv10 -m5 -s -rr -r -ep1 -ap "%f.rar" "%f"

    #if WinRar fails with an error the next command does not execute

    #delete the folder and everything within it. 
    /deletree %p%f
}
bigstar is offline  
Closed Thread

Tags
abort, display, local, script, winrar


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 07:10 PM.

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