Turning off passive

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
CyJobes
Junior Member
Posts: 15
Joined: Wed Oct 24, 2007 7:55 am

Turning off passive

Post by CyJobes »

How do I turn passive off when doing a comparison between a local directory and server using FTP?

What would the line look like?
ftp://foooo:foofighters.fooftp.com//dev.foobar.org/

Please provide a sample of either how this line would be changed, or of any changes elsewhere.

Thanks,
Cy
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Turning off passive

Post by psguru »

You should be able to achieve this by adding --no-passive-ftp option to wget command option in this file: C:\Program Files\ExamDiff Pro\Plug-Ins\wget\wget-1.10.2b\wget.js
psguru
PrestoSoft
CyJobes
Junior Member
Posts: 15
Joined: Wed Oct 24, 2007 7:55 am

Re: Turning off passive

Post by CyJobes »

Could you please supply an example?

Dang, another delay.
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Turning off passive

Post by psguru »

1. Open C:\Program Files\ExamDiff Pro\Plug-Ins\wget\wget-1.10.2b\wget.js file in your favorite editor (Notepad will do).
2. Replace

Code: Select all

cmdLine = "\"" + WScript.Arguments(0) + "\"" + " -r -nH --cut-dirs=" + nSlashes + " -P " + 
	WScript.Arguments(2) + " " + WScript.Arguments(1);
with

Code: Select all

cmdLine = "\"" + WScript.Arguments(0) + "\"" + " -r -nH --no-passive-ftp --cut-dirs=" + nSlashes + " -P " + 
	WScript.Arguments(2) + " " + WScript.Arguments(1);
3. Save the file, close the editor.
4. Run EDPro.
psguru
PrestoSoft
Post Reply