Git Product home page Git Product logo

Comments (5)

Konano avatar Konano commented on July 20, 2024 1

thx,但请问这个要怎么使用啊。是不是Discord每次更新后再手动运行下这个脚本?

嗯嗯对的,直接运行即可

from discord-proxy.

oOtroyOo avatar oOtroyOo commented on July 20, 2024 1

不。正因为太简单了,懒得装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.

paradox73 avatar paradox73 commented on July 20, 2024

thx,但请问这个要怎么使用啊。是不是Discord每次更新后再手动运行下这个脚本?

from discord-proxy.

EssentialCuber avatar EssentialCuber commented on July 20, 2024

不。正因为太简单了,懒得装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.

zjkal avatar zjkal commented on July 20, 2024

Python和Bat都很6, 向两位大佬致敬

from discord-proxy.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.