Possibly (probably) related to ?:
> UPD: Command-Line: Folder paths without space(s) don't have to be enclosed in double-quotes anymore.
Code: Select all
MKDIR "C:\TMP\X X X"
CD "C:\TMP\X X X"
MKDIR "XXX"
CD "C:\TMP\"
TREE
> C:\TMP\X X X
> C:\TMP\X X X\XXX
Run DUP.BAT:
Code: Select all
SET XDIRNAME=%CD%
SET
PAUSE
START "" C:\AllDup_commandline\AllDupPortable.exe %XDIRNAME%
EXIT
Code: Select all
XDIRNAME=C:\TMP\X X X\XXX
Code: Select all
No Source Folder Has Been Selected
Now, create a new directory:
C:\TMP\X\abc
Copy two duplicate files into \abc\
While still in C:\TMP\X X X\XXX, run DUP.BAT.
This time, the 'No Source Folder' message does not appear, but instead the folder C:\TMP\X\abc is scanned & the duplicates in there are found.
C:\TMP\X\abc is totally outside of your specified search path.
Guess what is happening, is in your parsing, somewhere along the line it hits the space in "X X X" & truncates things at that point, so only "X" remains, and as C:\TMP\X\ happens to (now) be a valid directory, it is scanned, successfully, but incorrectly.
So actually two separate but related bugs going on.