Page 1 of 1

.bat and FTP question

Posted: 17 Aug 2012 15:20
by htb
Hi,
So when I use batch file to make some FTP transfer I get a windows from the firewall asking me to allow that.
I've use

Code: Select all

netsh firewall set opmode mode=DISABLE

and

netsh firewall set opmode mode=ENABLE


but its too annoying. Is there some batch commands that permanently allows FTP so the firewall will not ask me for permition?
Thanks

Re: .bat and FTP question

Posted: 17 Aug 2012 16:52
by Squashman
Weird. I have never seen Windows Firewall block an outgoing ftp connection of any ftp client.

Re: .bat and FTP question

Posted: 17 Aug 2012 17:00
by htb
Its from batch FTP. And its not exactly blocking. Its doing the commands, but its opening windows to ask for permition.
Im trying now something like

Code: Select all

netsh firewall add allowedprogram "%systemdrive%\WINDOWS\system32\ftp.exe" FTP enable

but Im not shure its working

Re: .bat and FTP question

Posted: 17 Aug 2012 17:25
by aGerman
Run:

Code: Select all

>"rules.txt" netsh advfirewall firewall show rule name=all

Search this text files for rules that don't allow ftp.

If you found any then post it here, I'll try to advice. Unfortunately the rule names and properties are language dependent ...

Regards
aGerman