Search found 7 matches
- 01 Jun 2016 02:16
- Forum: DOS Batch Forum
- Topic: how to force command line to use proxy settings
- Replies: 2
- Views: 6298
Re: how to force command line to use proxy settings
I tested it and unfortunately it doesn't use proxy as well
- 31 May 2016 13:08
- Forum: DOS Batch Forum
- Topic: how to force command line to use proxy settings
- Replies: 2
- Views: 6298
how to force command line to use proxy settings
Hello,
I have a batch script that is doing some telnet checks. I used wireshark and noticed that it is bypassing IE proxy settings.
Is it any way to write a script that will use IE proxy settings or that will allow to enter proxy details and telnet will work through proxy server?
Thanks
I have a batch script that is doing some telnet checks. I used wireshark and noticed that it is bypassing IE proxy settings.
Is it any way to write a script that will use IE proxy settings or that will allow to enter proxy details and telnet will work through proxy server?
Thanks
- 02 Apr 2016 14:57
- Forum: DOS Batch Forum
- Topic: Move parameter out of for loop
- Replies: 8
- Views: 5072
Re: Move parameter out of for loop
for /f "usebackq tokens=1-2 delims=:" %%a in (`nslookup %2`) do ( echo %%a:%%b ^</br^> >> %opt% ) The output of above (for each run) looks like: Server: hostname.com Address: 190.190.190.190 Name: name.com Address: 200.200.200.200 Aliases: google.com From the .txt file the lines like belo...
- 02 Apr 2016 11:53
- Forum: DOS Batch Forum
- Topic: Move parameter out of for loop
- Replies: 8
- Views: 5072
Re: Move parameter out of for loop
Hi Antonio, The below script doesn't work good jarosss could wrote: Check the output from 'NSLOOKUP' and look if value %3 is found inside second token; report the result as NOT or OK, but just on line #4. The result of nslookup are 5 lines The intersting value (the answer) is always in line 4 I modi...
- 02 Apr 2016 10:10
- Forum: DOS Batch Forum
- Topic: Move parameter out of for loop
- Replies: 8
- Views: 5072
Re: Move parameter out of for loop
Unfortunatelly the result is always OK
Only if the first run of the loop doesn't find %%b==%3 the answer in NOT, so I think it compares all %%b results from the begining every time and not only last one.
Only if the first run of the loop doesn't find %%b==%3 the answer in NOT, so I think it compares all %%b results from the begining every time and not only last one.
- 02 Apr 2016 08:56
- Forum: DOS Batch Forum
- Topic: Move parameter out of for loop
- Replies: 8
- Views: 5072
Re: Move parameter out of for loop
I cannot search in %opt% because it will search in all past results. I want to find string %3 corresponding to %%b in last run of the loop (or in last result in %opt%).
Could you please explain how can I do it with EnableDelayedExpansion?
Could you please explain how can I do it with EnableDelayedExpansion?
- 02 Apr 2016 04:14
- Forum: DOS Batch Forum
- Topic: Move parameter out of for loop
- Replies: 8
- Views: 5072
Move parameter out of for loop
Hello, I am trying to modify .bat script and have a problem with compare of two values. Firstly I tried to do like this: for /f "usebackq tokens=1,2 delims=:" %%a in (`nslookup %2`) do ( echo %%a:%%b ^</br^> >> %opt% echo %%b | FINDSTR /I /C:"%3" if errorlevel 1 ( echo ^<td class...