droid icon indicating copy to clipboard operation
droid copied to clipboard

Error on Windows CLI if the path includes a trailing slash and enclosed in quotes

Open sparkhi opened this issue 3 years ago • 1 comments

Try a command as below where we are profiling a folder but there is a trailing slash and the parameter is enclosed in double quotes.

droid.bat -Ns C:\Users\sparkhi\.droid6\signature_files\DROID_SignatureFile_V110.xml -Nr "c:\test-data\archives\" -q

We get an error as shown below:

An unknown error occurred: Illegal char <"> at index 21: c:\test-data\archives" -q

sparkhi avatar Mar 14 '23 16:03 sparkhi

The slash is being treated as an escape character so that the literal quote mark is included in the parameter string

DavidUnderdown avatar Mar 14 '23 16:03 DavidUnderdown