How to Unzip a File in WinSCP

Techwalla may earn compensation through affiliate links in this story.
Image Credit: jakkapan21/iStock/Getty Images

WinSCP is a free SFTP, SCP, FTPS and FTP client for Microsoft Windows operating systems. As well as being a stand-alone program, WinSCP can also be used as a plug-in for file manager programs. Although the primary purpose of WinSCP is to transfer files from one machine to another, the client also contains some scripting and file manager features. One of these is an archive manager, which can be accessed through a "Custom command," which makes use of the client's command-line interface.


Step 1

Load up Win SCP and log in to the FTP account that you use to access the archived file. If the file is on your local machine, you do not have to log in to an account.

Video of the Day

Step 2

Navigate to the location of the file. If the file is on your local computer, do this with the left-hand window. If the file is on a server, use the right-hand window.

Step 3

Right-click the file and click "Custom Commands." A window will appear, with some options for you to configure. If you want to unzip the file to its present directory, type the following into the "Custom command" text field.


unzip -o "!"

To unzip the file to an alternative directory, use this command:

unzip -o -d path/to/location

If the file you want to unzip is on the remote server, click the "Remote command" radio button just below the "Custom command" text field. If the file is on the local machine, click the "Local command" radio button.

Step 4

Click "OK" to execute the command.


If you want to copy the results of the unzipping to the clipboard, for example to paste into a folder elsewhere, click the “Copy results to clipboard” checkbox. Clicking the “Show results in terminal” check box can help you troubleshoot the process if it does not work correctly the first time. If this is an operation you will be performing frequently, you can assign a short cut from the “Keyboard shortcut” drop-down menu. In the future, simply execute your short cut instead of bringing up the “Custom commands” dialogue box.