Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 如何在.bat文件中设置具有身份验证的internet代理?_Batch File_Proxy_Settings - Fatal编程技术网

Batch file 如何在.bat文件中设置具有身份验证的internet代理?

Batch file 如何在.bat文件中设置具有身份验证的internet代理?,batch-file,proxy,settings,Batch File,Proxy,Settings,我买了需要身份验证的私有代理。 我构建了一个批处理文件,并在此脚本中添加了以下内容,但不起作用: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer

我买了需要身份验证的私有代理。 我构建了一个批处理文件,并在此脚本中添加了以下内容,但不起作用:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d http://username:password@IP Address:PORT /f
提前谢谢