Menu

Extract to folder without creating a subfolder?

Help
2021-01-04
2021-01-05
  • Jack Walter

    Jack Walter - 2021-01-04

    Hi.

    7-zip v20.02 alpha, Windows Server 2019

    I want to use "7zG.exe" to extract an archive file into a specific destination path without creating a subfolder with the base file name.

    E.g.: The source file to extract is:
    R:\Discord [9.09.2019].zip

    I want it to be extracted to:
    R:\Discord\

    7zG.exe x "R:\Discord [9.09.2019].zip" -o"R:\Discord" -r -aoa

    But this would create:
    R:\Discord\Discord [9.09.2019]\[all files and folders from the archive]

    I want this instead:
    R:\Discord\[all files and folders from the archive]

    Can this be achieved?

     
  • Igor Pavlov

    Igor Pavlov - 2021-01-04

    You can extract and then rename folder.

     
  • Jack Walter

    Jack Walter - 2021-01-05

    Ok, thanks.

     

Log in to post a comment.