Reputation: 614
i need to use windows command prompt to unzip files. I have files with spaces in the file name which is not supported. i am using command ::
v: 7za.exe xyz ac.zip for zip file "xyz ac.zip"
v: unrar.exe abc y.rar for rar file "abc y.rar"
Upvotes: 1
Views: 3629
Reputation: 11315
You've almost answered yourself - put the filename in quotes!
Look at the end of your line:
7za.exe xyz ac.zip for zip file "xyz ac.zip"
Also the paths should be given - you have three options:
1. cd
to the directory where 7za.exe
file is and alter the command to have full path to "xyz ac.zip"
.
2. cd
to the directory where "xyz ac.zip"
file is and alter the command to have full path to 7za.exe
.
3. Add 7za.exe
folder to system path
, cd
to the directory where "xyz ac.zip"
file is and execute your command unmodified.
Upvotes: 1