1.

Solve : help needed with changing proxy under DOS?

Answer»

Hello there,
i need to CHANGE my proxy server under DOS, and open php page after that.
since now i tryed several ways, but with no success. i already have a way to set different proxy address on separate txt file.
readin those forums i CAME up with that small bat file

pro1.bat
Code: [Select]set /P MyIP=<pro.txt
pro.bat %MyIP%
pro.bat
Code: [Select]proxycfg -p %1 %2
pro.txt
Code: [Select]212.050.016.022 3128

when I type proxycfg windows returns that.

Code: [Select]C:\WINXP\system32>proxycfg
Microsoft (R) WinHTTP DEFAULT Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.

Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :

Proxy Server(s) : 212.050.016.022
BYPASS List : 3128
but ... still, windows returns that i am not using any proxy. (system deafults)

P.S. It could be great, if i can simulate opening a php page under DOS, but it wont be big deal, if i have to open it in MSIE.

thanks in advance.



Discussion

No Comment Found