.bat and FTP question

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
htb
Posts: 7
Joined: 15 Aug 2012 21:55

.bat and FTP question

#1 Post by htb » 17 Aug 2012 15:20

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

Squashman
Expert
Posts: 4471
Joined: 23 Dec 2011 13:59

Re: .bat and FTP question

#2 Post by Squashman » 17 Aug 2012 16:52

Weird. I have never seen Windows Firewall block an outgoing ftp connection of any ftp client.

htb
Posts: 7
Joined: 15 Aug 2012 21:55

Re: .bat and FTP question

#3 Post by htb » 17 Aug 2012 17:00

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

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: .bat and FTP question

#4 Post by aGerman » 17 Aug 2012 17:25

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

Post Reply