unzip not using specified path

Aug 28, 2008
124
4
I've had a batch file for some time that unzips Microsoft Office *.docx, *.xlsx, and other OpenXML files. It creates a subfolder and then uses the unzip command to extract the contents of the archive to said subfolder. Ever since I updated to TCMD 12.x from TCMD 11.x the same batch file is no longer working. The contents of the batch file are:

set xdir=%@path[%@full[%1]]%@name[%1] UNZIPPED
md "%xdir"
unzip /d %1 "%xdir" *
unset xdir

The problem is that the unzip command is no longer using the specified path. In fact, I can't get the unzip command to extract any archive to a path I supply. Has something changed? Is it broken? Thanks in advance.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Looks fishy to me. Below, the files were actually unzipped to v:\. (And where did "Indexing" come from?)

Code:
v:\> unzip /d sysutils.zip "sysutils UNZIPPED"\
=> V:\sysutils UNZIPPED\sysutils.txt
=> V:\sysutils UNZIPPED\os.txt
=> V:\sysutils UNZIPPED\sysutils.dll
Indexing V:\

v:\> dir "sysutils UNZIPPED"\

 Volume in drive V is DATA           Serial number is c007:d3e4
 Directory of  V:\sysutils UNZIPPED\*

2011-03-02  14:30         <DIR>    .
2011-03-02  14:30         <DIR>    ..
                 0 bytes in 0 files and 2 dirs
     7,037,362,176 bytes free
 
Aug 28, 2008
124
4
That's exactly the sort of behavior I see: the command "talks" like it's putting things in the right directory but it doesn't. As to the indexing, that's a new feature as I understand it; it will automatically index the files/folders its unzipping unless you explicitly suppress that behavior with a command-line switch.
 
Aug 28, 2008
124
4
Might anyone from JP Soft weigh in on this? Is it a bug? Is it intended functionality? Am I misunderstanding something? Thanks.
 
Similar threads
Thread starter Title Forum Replies Date
S UNZIP all archives to separate subdirectory Support 10
C unzip problems Support 2
D unzip fails to find valid license Support 3
Jay Sage Fixed Mistake in Command Dialog for UNZIP Support 0
fishman@panix.com Inadequate HELP for UNZIP command. Support 3
H 12.10 UNZIP ignores destination path spec Support 2
D unzip problem in tcmd 12 b 36 Support 3
nikbackm unzip issues in v12 Support 12
fishman@panix.com Unzip in 12.0 Support 1
H UNZIP /F and /U still not right 12.0.27 Support 0
H Unzip /F and /U not working in V12 Support 3
H V12 UNZIP very slow under certain circumstances Support 3
H UNZIP /U issue Support 0
Phileosophos Unzip doesn't extract to specified output folder Support 5
D unzip /d in directory with space in name Support 1
fishman@panix.com Problem with unzip Support 4
H ZIP/UNZIP issues Support 4
Joe Caverly ZIP, UNZIP v11 Beta Support 6
Jesse Heines Using Regular Expressions with the REN commanc Support 8
R WAD Unusable state when using Chinese characters Support 3
Joe Caverly Using TYPE with non-English text Support 22
L Using TCC.exe through an SSH connection Support 3
Joe Caverly Using @PSHELL from @EVAL Support 8
Jay Sage Command Will Not Run Using Short Name of Path Support 5
Jay Sage Cannot Postion Cursor in Command Line Using Mouse Support 7
MikeBaas Using the debugger Support 2
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
Dick Johnson Using the @instr function Support 5
Joe Caverly Using this CMD technique from TCC Support 17
Joe Caverly What version and Windows OS are you using? Support 3
Craig Fitzgerald Problems using tcstart.btm Support 3
R How to? Append files in multiple subfolders using copy? Support 8
M Ctrl-C when using command line history does nothing Support 2
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
C French accents using msgbox Support 4
C "Failed to update the system registry. Please try using REGEDIT" Support 3
x13 Problem listing repository files using DIR http(s)://... Support 8
R Regex using ^ Support 2
cxxl WAD Mouse movement sluggish when using TCC list Support 3
jfalch WAD internal "which" should check for FILEEXIST when using AppPaths entry Support 8
D How to? Scale font in TCC using wheel mouse or other means Support 2
fpefpe Documentation copy/move using /c or /u Support 2
gschizas Fixed Using codepage 65001 (UTF-8) breaks non-ASCII characters Support 8
D How to? Use typed envars using regex. Support 3
epement Using "everything" Support 10
U Installing the Compaq Visual Fortran 6.0 compiler using Take Command Support 8
Alexander WAD The number of files and dirs are multiplied when using multiple wildcards Support 6
T using bottom line for status bar Support 3
A How to? How do you launch TCC/LE using the already-open instance? Support 5
rps Fixed Using last argument variable ! Support 5

Similar threads