![]() ![]() For extracting, ZIP format is supported by natively the script (PowerShell 5.0 and newer is needed). For archiving, ZIP ( zip -r) and TAR/GZIP ( tar -czvf) archive formats are supported. Use the Archive type to select the archive type to create. When Extract after download is enabled, the name of the archive is not important, as it is downloaded to a temporary folder and deleted after the extraction. The option is available when executing the extension only. In the Archive name enter a name of the archive (without extension) to create. $path7zip = "C:\Program Files\7-Zip\7z.exe", # The 7z.exe can be replaced with portable 7za.exe # powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" ^ # -sessionUrl "!E" -remotePath "!/" -localPath "!\" ^ # -archiveName "%ArchiveName%" -pause %Extract% ^ # -sessionLogPath "%SessionLogPath%" ^ # %Use7zip% -path7zip "%Path7zip%" ^ # -archiveType %ArchiveType% -archiveCommand "%ArchiveCommand%" !& # Packs the selected files to an archive, downloads it, ^ # and optionally extracts the archive to the current local directory # ApplyToDirectories # RemoteFiles # 1 # WinSCP 5.15 # ArchiveName -run textbox "&Archive name:" "archive" # ArchiveType -config -run combobox "Archive &type:" ^ # zip zip tar/gzip # -config group "Packing" # ArchiveCommand -config textbox "Custom archive &command:" # -config -run group "Extracting" # Extract -config -run checkbox "&Extract after download" "" -extract # Use7zip -config -run checkbox "Use &7-zip for extracting" "" -use7zip # Path7zip -config file "7-zip &path (7z.exe/7za.exe):" ^ # "C:\Program Files\7-Zip\7z.exe" # -config group "Logging" # SessionLogPath -config sessionlogfile # param ( # Use Generate Session URL function to obtain a value for -sessionUrl parameter. To use a different archive format than ZIP, you can install 7-Zip, add configure the extension to use it.įor opposite functionality, use extension Pack files to ZIP archive and upload it. When extracting the files, ZIP format is supported natively by the script. Additional formats can be added by configuring a custom archiving command. ZIP and TAR/GZIP archive formats are supported. This is supported only with SCP and SFTP protocols, when a *nix-like shell access is available on the server. zip or tar) to archive the selected files. The extension executes a command remotely (e.g. This extensions archives the selected remote file, download the archive and optionally extracts it to the current local directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |