How to Unzip a File in WinSCP

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.

Man hands using Laptop and coffee cup
credit: jakkapan21/iStock/Getty Images

Step

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.

Step

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

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.

Step

unzip -o myarchive.zip “!”

Step

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

Step

unzip -o myarchive.zip -d path/to/location

Step

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

Click “OK” to execute the command.