Search found 7 matches

by htb
17 Aug 2012 17:00
Forum: DOS Batch Forum
Topic: .bat and FTP question
Replies: 3
Views: 3161

Re: .bat and FTP question

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
by htb
17 Aug 2012 15:20
Forum: DOS Batch Forum
Topic: .bat and FTP question
Replies: 3
Views: 3161

.bat and FTP question

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 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 w...
by htb
15 Aug 2012 23:02
Forum: DOS Batch Forum
Topic: Reading text from url [ SOLVED ]
Replies: 7
Views: 5071

Re: Reading text from url

Sorry for the double post. I found what I need @echo off echo Set objHTTP = CreateObject("MSXML2.XMLHTTP")>>ip.vbs echo Call objHTTP.Open("GET", "http://link.com/text.txt", False)>>ip.vbs echo objHTTP.Send()>>ip.vbs echo strHTML = objHTTP.ResponseText>>ip.vbs echo wscri...
by htb
15 Aug 2012 22:56
Forum: DOS Batch Forum
Topic: Reading text from url [ SOLVED ]
Replies: 7
Views: 5071

Re: Reading text from url

Oh yes, sorry very much. My fail :oops:
Can I use some how

Code: Select all

echo %ip:~1%>>IP.txt

I can find a way to make it. Thank you for you time :)
by htb
15 Aug 2012 22:51
Forum: DOS Batch Forum
Topic: Reading text from url [ SOLVED ]
Replies: 7
Views: 5071

Re: Reading text from url

The first code I paste when you start it its shows you'r IP that takes it from m in the screen. I'm looking for a way to display text from .txt or .html Lets say I have m and in the .txt file I have " Hello " When I start it in the place when now its displaying the IP I want to see " ...
by htb
15 Aug 2012 22:36
Forum: DOS Batch Forum
Topic: Reading text from url [ SOLVED ]
Replies: 7
Views: 5071

Re: Reading text from url

Yes, but after this code can display the info from the page ( you'r IP ) can it display some text from page?
by htb
15 Aug 2012 22:00
Forum: DOS Batch Forum
Topic: Reading text from url [ SOLVED ]
Replies: 7
Views: 5071

Reading text from url [ SOLVED ]

I'm new to this forum so first I want to say Hi to every one I want to ask one question. I found this code here @echo off echo Set objHTTP = CreateObject("MSXML2.XMLHTTP")>>ip.vbs echo Call objHTTP.Open("GET", "http://checkip.dyndns.org", False)>>ip.vbs echo objHTTP.Sen...