Comments (5)
thx,但请问这个要怎么使用啊。是不是Discord每次更新后再手动运行下这个脚本?
嗯嗯对的,直接运行即可
from discord-proxy.
不。正因为太简单了,懒得装python了,建议用bat。
例如:
@echo off
cd /d %~dp0
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
set discordRoot=%localappdata%\Discord
echo discordRoot
for /d %%i in (%discordRoot%\*) do (
SETLOCAL EnableDelayedExpansion
set "x=%%~ni"
if "!x:~0,4!"=="app-" (
xcopy /x /y version.dll %%i\
)
)
cd /d %discordRoot%
Update.exe --processStart Discord.exe --a=--proxy-server=http://127.0.0.1:10809
exit
创建bat后,用这个bat当作入口。同时把 version.dll放在一起。一键启动。
from discord-proxy.
thx,但请问这个要怎么使用啊。是不是Discord每次更新后再手动运行下这个脚本?
from discord-proxy.
不。正因为太简单了,懒得装python了,建议用bat。
例如:
@echo off cd /d %~dp0 set "params=%*" cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) set discordRoot=%localappdata%\Discord echo discordRoot for /d %%i in (%discordRoot%\*) do ( SETLOCAL EnableDelayedExpansion set "x=%%~ni" if "!x:~0,4!"=="app-" ( xcopy /x /y version.dll %%i\ ) ) cd /d %discordRoot% Update.exe --processStart Discord.exe --a=--proxy-server=http://127.0.0.1:10809 exit创建bat后,用这个bat当作入口。同时把 version.dll放在一起。一键启动。
不会bat的留下了羡慕的眼泪,不过环境里有python,所以还是python方便一些。
from discord-proxy.
Python和Bat都很6, 向两位大佬致敬
from discord-proxy.
Related Issues (14)
- Another plan (Use bat instead of dll hijack) HOT 1
- 在Readme.md里面发现一处拼写错误 HOT 1
- [求助]是否可以使用配置文件? HOT 1
- mac 端怎么代理端口 HOT 1
- UDP问题 HOT 4
- 1.0.9040上似乎已经不支持了? HOT 6
- 无法找到函数GetFileVersionInfoExA,程序无法正常运行 HOT 1
- 你知道为什么之前的方法会失效吗? HOT 2
- Discord更新1.0.9004版后失效,已重放dll HOT 2
- Discord 自动更新到版本1.0.9004,然后处于Starting 进入不了 HOT 8
- 似乎是不能使用socks5的方式进行代理 HOT 4
- 对于 app-1.0.9005 无效 HOT 6
- 1.0.9006 卡 Starting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-proxy.