Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I am working on one of the batch script and require help on the same.
Not sure if this is the right place to post a question on batch scripting
Scenario : A 7z file having multiple folders and each subfolder contain 1 or more files
Unzip.7z
Folder1
A.qvw
Folder2
B.qvw
Folder3
C.qvw
Task to achieve : unzip the 7z file and extract all the sub folders i.e. Folder 1, Folder 2, Folder 3 at some destination location
I have use below command but this command is extracting all sub folders and their files seperately i.e. like below
command : "C:\Windows\7za.exe" e "C:\Unzip.7z" -o"C:\Test\"
Output :
Folder 1
Folder 2
Folder 3
A.qvw
B.qvw
C.qvw
I think i am missing a switch which will help me to achieve the required output.
Can anyone help me here?
Thanks in advance
-Punit
Hello Punit,
You can refer the below sample code:
//Using 7zip
"C:\Windows\7za.exe" x "C:\Unzip.7z" -o "C:\Test\"
//Using WinRAR
"C:\Program Files\WinRAR\WinRAR.exe" x "C:\Data.zip" -o "C:\Test\"
Hope this will help.
Regards!
Rahul
This isn't related to QV , so i suggest you ask this on forums like StackOverflow
windows - How to use a simple batch file to unzip & overwrite existing file - Stack Overflow
Hello Punit,
You can refer the below sample code:
//Using 7zip
"C:\Windows\7za.exe" x "C:\Unzip.7z" -o "C:\Test\"
//Using WinRAR
"C:\Program Files\WinRAR\WinRAR.exe" x "C:\Data.zip" -o "C:\Test\"
Hope this will help.
Regards!
Rahul
Thank Rahul for all your help!!
You made my day.. ![]()
We are brothers Man!
Cheers,
Rahul