V1.2.0.8 command line does not work with equal signs

Ask for help about FlashGot, no registration needed to post
Post Reply
Klaus

V1.2.0.8 command line does not work with equal signs

Post 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
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

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

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6pre) Gecko/20091114 SeaMonkey/2.0.1pre
Klaus

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

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Klaus

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

Post 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
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Post Reply