Page 1 of 1

V1.2.0.8 command line does not work with equal signs

Posted: Tue Nov 17, 2009 5:12 pm
by Klaus
Lately a new problem came up. I guess it came with the last update of FlashGot.
If you use a batch file for starting wget and have a command line that includes equal signs, these equal signs get replaced by spaces somewhere in the process.

Command:
C:\WINDOWS\system32\cmd.exe
Command line:
/c C:\echo_it.bat [--directory-prefix=FOLDER] ...

The log does show the equal signs:
Running C:\WINDOWS\system32\cmd.exe /c C:\echo_it.bat --directory-prefix=D:\download ...

... but the batch file does not get them.
--directory-prefix D:\download ...

echo_it.bat:
echo %1 %2 %3 %4
pause


Firefox: v3.5.5 on XP

Thanks
Klaus

Re: V1.2.0.8 command line does not work with equal signs

Posted: Wed Nov 18, 2009 2:08 am
by therube
Did you setup ever work?


Command line:

Code: Select all

/c C:\echo_it.bat [FOLDER] [URL]
echo_it.bat:

Code: Select all

@echo off
echo --directory-prefix=%1
echo %1 %2 %3 %4
pause
Something similar to that? And suppose you'd want a wget.exe in there somewhere too.

Re: V1.2.0.8 command line does not work with equal signs

Posted: Wed Nov 18, 2009 12:52 pm
by Klaus
Sorry, not a FlashGot problem!

It was the new tcc (from jpsoft) that takes '=' as ' '.
Have to find the right switch/option to avoid that.

Thanks therube for your reply.

Can someone delete the thread - it could confuse people, please.

Re: V1.2.0.8 command line does not work with equal signs

Posted: Wed Nov 18, 2009 1:13 pm
by Klaus
Hello Therube,

just to your question: yes it did work with 4nt. After looking around on jpsofts site,
I discovered that this ('=' as separator for parameters) is compatible with cmd.exe (XP...).

And yes, I do use it with wget. I like+need the Flashgot feature to avoid the parameter pair with
i.e. [--post-data=POST]. Otherwise I have no easy way to figure out if [POST] is there or not.

As a workaround I am using a '##' instead of the '=' and replace this back to '=' in the batch file.

Thanks again
Klaus