Extract files to parent directory

Help
2013-09-03
2013-09-06
  • Onno Wassenaar
    Onno Wassenaar
    2013-09-03

    Hi all,

    I want to do the following via the command line/ bat file, so I can execute it with a scheduled task.

    I have zip files in maps like this:

    c:\folder\map1\name.zip
    c:\folder\map2\name.zip
    c:\folder\map3\name.zip

    I want to extract the zip files to a structure like this:

    c:\extracted\map1\files
    c:\extracted\map2\files
    c:\extracted\map3\files

    I tried to do this with the following line, but (obviously) it won't work.

    "C:\Program Files\7za920\7za.exe" x "C:\TestMap\Content\x\x.7z" -y -r -oC:\TestMap\Extracted\x\

    Can someone please help me with this.

     
    Last edit: Onno Wassenaar 2013-09-03
  • fernando
    fernando
    2013-09-06

    first...
    your archive name is NAME.ZIP
    but you try to extract wildcard .7Z archive names

    second...
    your path of archive does not match location provided

    I have zip files in maps like this:

    c:\folder\map1\name.zip

    "C:\TestMap\Content\x\x.7z"