winscp custom commands

winscp custom commands / once set up are accessed either byt he toolbar or by right clicking on a file and selecting the the custom
command by mousing over th "Custom Commands" drop down. Simply select a file them click on Unrar/Unzip ect.

in the remote window right click on any file/directory. on the pop up menu tht appears mouse over "custom commands".
at the bottom are two option, first thing it to make sure that "Custom Command Buttons" is checked.
The click on "Customise"

Click on "Add"

The first line is to give your command a name like Split Archives. It will not look into subdirectories for files to rar either.
The Second line is for tha actual command.
Check the boxes for "Remote Command" and "Show Results in Terminal"  <--------- Important, always check before you click OK
-------------------------------------------------------------------------------------------------------------------
Archives Split volumes

rar a -m0  -v99m "Name.of.archive"

#-m0 to -m5 are compression settings , with 5 being the best.
#-v99m is the size in megabytes, so to change you would out -v49m for 49Megabyte splits,
# "name" is the name of the archive, looks like name.part001.rar when done.

-------------------------------------------------------------------------------------------------------------------
UnrarALL

unrar x "*"

# will unrar anything in the folder except within sub directories.

-------------------------------------------------------------------------------------------------------------------

Creat SFV

cfv -C -v

# Will ingnore the contents of subdirectories
#Will sfv all files/folders in the folder so you need to only have the ones you want sfv's in there.
-------------------------------------------------------------------------------------------------------------------
Check SFV

cfv -v

-------------------------------------------------------------------------------------------------------------------

UnZip

unzip -o "*.zip"

# -o is to overwrite without promting
# "*.zip" is what it looks for in the directory, * being anything with a .zip extension.
# select 1 zip, use the unzip command and it will do all the rest automatically.

No comments:

Post a Comment