Differences

This shows you the differences between the selected revisions of the page.

2016-05-27 2016-05-31
syntax error (martin) replacing !??! pattern with runtime extension option + "use 7-zip" and "Archive type" are runtime options too (martin)
Line 17: Line 17:
<code powershell - ZipUpload.ps1> <code powershell - ZipUpload.ps1>
# @name        &ZIP and Upload... # @name        &ZIP and Upload...
-# @command      powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -remotePath "!/" -archiveName "!?&Archive name:?archive!" -pause -sessionLogPath "%SessionLogPath%" %Use7zip% -path7zip "%Path7zip%" -archive7zip %Archive7zip% !&+# @command      powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" -sessionUrl "!S" -remotePath "!/" -archiveName "%ArchiveName%" -pause -sessionLogPath "%SessionLogPath%" %Use7zip% -path7zip "%Path7zip%" -archive7zip %Archive7zip% !&
# @description  Packs the selected files to a ZIP archive and uploads it # @description  Packs the selected files to a ZIP archive and uploads it
# @flag        ApplyToDirectories # @flag        ApplyToDirectories
Line 24: Line 24:
# @require      WinSCP 5.8.4 # @require      WinSCP 5.8.4
# @require      .NET 4.5 # @require      .NET 4.5
-# @option      - group "7-zip" +# @option      ArchiveName -run textbox "&Archive name:" "archive" 
-# @option        Use7zip checkbox "Use &7-zip" "" -use7zip +# @option      - -config -run group "7-zip" 
-# @option        Path7zip file "7-zip &path (7z.exe/7za.exe):" "C:\Program Files\7-Zip\7z.exe" +# @option        Use7zip -config -run checkbox "Use &7-zip" "" -use7zip 
-# @option ········Archive7zip dropdownlist "&Archive type (with 7-zip):" zip zip 7z xz gzip bzip2 tar +# @option        Archive7zip -config -run dropdownlist "&Archive type (with 7-zip):" zip zip 7z xz gzip bzip2 tar 
-# @option      - group "Logging" +# @option        Path7zip -config file "7-zip &path (7z.exe/7za.exe):" "C:\Program Files\7-Zip\7z.exe" 
-# @option        SessionLogPath file "&Session log file:"+# @option ······- -config group "Logging" 
 +# @option        SessionLogPath -config file "&Session log file:"
# @optionspage  ~~SELF~~#options # @optionspage  ~~SELF~~#options

Last modified: by martin