405: No Source Folder Has Been Selected

English support for the software AllDup
Post Reply
therube
Posts: 322
Joined: 07 Nov 2012, 00:28

405: No Source Folder Has Been Selected

Post by therube »

405: No Source Folder Has Been Selected


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
Drop to a C: prompt at: 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
Result:

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.
therube
Posts: 322
Joined: 07 Nov 2012, 00:28

Re: 405: No Source Folder Has Been Selected

Post by therube »

OK, so if I add quotes to my .bat file, it again works as expected.

Code: Select all

SET      XDIRNAME="%CD%"

(The way it worked... I stopped with this altogether, was totally doing unrelated work, & out of the blue, it popped, what if... :-).)
Administrator
Site Admin
Posts: 4047
Joined: 04 Oct 2004, 18:38
Location: Thailand
Contact:

Re: 405: No Source Folder Has Been Selected

Post by Administrator »

Folder paths without space(s) don't have to be enclosed in double-quotes anymore...
Post Reply