I'm using the following command to unzip a file:
"C:\Program Files\7-Zip\7z.exe" x "\\server\folder\backup.gz" -aoa "-o\\server\folder\"
I've been on the 7-zip help section and the examples for using -aoa aren't very clear. Using Google I can see solutions on a website called sevenzip, but it's not available. I also thought I could use the rn command but I wasn't sure where to place it.
-aoa
switch overwrites. The-aou
renames the extracted file if it already exists in the target directory. The-aot
renames the existing file in the target directory. – Denis_1
to the base file name depending on which switch you use. – Denis