Extract selected file without directory structure

Apr 23, 2014 at 6:35 PM
I need to extract specific file from zip file without the directory structure. I am using powershell
$zip.ExtractSelectedEntries("name = abc.txt" , DirA , "outputfolder", ExtractExistingFileAction.DontOverwrite);
Extracteselectedentries creates DirA in output folder also which I don't need. How can I achieve this?