Whenever we try to Unzip a file using Invoke Method Activity which contains any file with a name which contains ":" in it, it will throw an error "The given path's format is not supported".
The issue is related to the Windows Filename format. So as to overcome this, below workaround can be followed.
If we have 7zip then you can use 7zip command lines to extract the data of the .ZIP file, see below for details with steps
- Download and install 7-Zip from 7-zip.org.
- Add the directory you installed 7-Zip into to your path (Start -> Control Panel -> System -> Advanced -> Environment Variables). You can add your 7zip installed folder path to the System variable "PATH"
- Navigate to the directory you wish to unpack into (usually the ZIP file will put everything into a directory inside this directory).
- Type 7z x filename.Zip at the command prompt (where filename.Zip is the name of the Zip file).
Extracted file will be available in the folder.
To execute a command line from UiPath, create a batch file with commands and execute it from UiPath or you can use "Start process" activity.