Results 1 to 8 of 8

Thread: 7Zip

  1. #1
    Gold Lounger Roderunner's Avatar
    Join Date
    Dec 2009
    Location
    Scotland.
    Posts
    3,462
    Thanks
    16
    Thanked 216 Times in 183 Posts

    7Zip

    Hi Loungers, if memory serves me well, I read how to get 7Zip to extract files to a pre set location. I'm using version 9.20. Any ideas?
    O wad some Power the giftie gie us, to see oursels as ithers see us!

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,168
    Thanks
    47
    Thanked 978 Times in 908 Posts
    Use the self extractor?

    cheers, Paul

  3. #3
    Gold Lounger Roderunner's Avatar
    Join Date
    Dec 2009
    Location
    Scotland.
    Posts
    3,462
    Thanks
    16
    Thanked 216 Times in 183 Posts
    Hi Paul, as Sitting Bull would say 'How'
    O wad some Power the giftie gie us, to see oursels as ithers see us!

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    I'm not sure I understand the question. Most ZIP software lets you save the full path to the original file so that it will extract to that same location. Did you want to specify a different path?

  5. #5
    Gold Lounger Roderunner's Avatar
    Join Date
    Dec 2009
    Location
    Scotland.
    Posts
    3,462
    Thanks
    16
    Thanked 216 Times in 183 Posts
    Quote Originally Posted by jscher2000 View Post
    I'm not sure I understand the question. Most ZIP software lets you save the full path to the original file so that it will extract to that same location. Did you want to specify a different path?
    Hi Jefferson, 7zip automatically unzips to location of archive, I want to set default location to desktop regardless of where archice is.
    O wad some Power the giftie gie us, to see oursels as ithers see us!

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    Quote Originally Posted by jscher2000 View Post
    I'm not sure I understand the question. Most ZIP software lets you save the full path to the original file so that it will extract to that same location. Did you want to specify a different path?
    I think I was misremembering. Archivers save the relative path to preserve the folder structure, but not the full path back to the root of C drive.

    Quote Originally Posted by Roderunner View Post
    Hi Jefferson, 7zip automatically unzips to location of archive, I want to set default location to desktop regardless of where archice is.
    Is this just for your personal use? In that case, you might be able to create a batch file and put it in your "Send To" folder to extract your archives to the desired location. 7-zip supports a command-line parameter (-o) to specify the output folder.

    Can't test at the moment, but perhaps something like this:

    Code:
    7z e "%1" -o%USERPROFILE%\Desktop -r
    (You might have to use the full path if 7-zip doesn't recognize the designation %USERPROFILE%\Desktop for the logged-in user's desktop folder.)

  7. #7
    Gold Lounger Roderunner's Avatar
    Join Date
    Dec 2009
    Location
    Scotland.
    Posts
    3,462
    Thanks
    16
    Thanked 216 Times in 183 Posts
    Quote Originally Posted by jscher2000 View Post
    (You might have to use the full path if 7-zip doesn't recognize the designation %USERPROFILE%\Desktop for the logged-in user's desktop folder.)
    Thanks I'll try it and post results, good or bad.
    O wad some Power the giftie gie us, to see oursels as ithers see us!

  8. #8
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,168
    Thanks
    47
    Thanked 978 Times in 908 Posts
    Seems the SFX option doesn't allow you to embed an extract path - pity. You can use the installer create module which will extract to a temporary directory and clean up afterwards. Then you could copy the files to wherever you want.

    cheers, Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •