Last active
December 27, 2022 18:15
-
-
Save sethwololo/8181cb2e097d60ea7ded1b49fdf6f073 to your computer and use it in GitHub Desktop.
Arquivo CMD para fazer um symlink de todas as pastas da biblioteca Steam para outra pasta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
CHCP 65001 | |
CLS | |
SET steamFolder=C:\Gaming\Stores\Steam\steamapps\common\ | |
SET gamesFolder=C:\Gaming\Games\ | |
GOTO:MAIN | |
:linkFolder | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET gameFolder=%~1 | |
IF %gameFolder:~0,5% NEQ Steam ( | |
ECHO [%gameFolder%] | |
ECHO: | |
IF not exist "%gamesFolder%%~1" ( | |
MKLINK /D "%gamesFolder%%~1" "%steamFolder%%~1" | |
) ELSE ( | |
ECHO Link já existente | |
) | |
ECHO: | |
ECHO ---------------------- | |
ECHO: | |
) | |
ENDLOCAL | |
EXIT /B 0 | |
:printAscii | |
ECHO: | |
ECHO ███████╗████████╗███████╗ █████╗ ███╗ ███╗ ███████╗██╗ ██╗███╗ ███╗██╗ ██╗███╗ ██╗██╗ ██╗ | |
ECHO ██╔════╝╚══██╔══╝██╔════╝██╔══██╗████╗ ████║ ██╔════╝╚██╗ ██╔╝████╗ ████║██║ ██║████╗ ██║██║ ██╔╝ | |
ECHO ███████╗ ██║ █████╗ ███████║██╔████╔██║ ███████╗ ╚████╔╝ ██╔████╔██║██║ ██║██╔██╗ ██║█████╔╝ | |
ECHO ╚════██║ ██║ ██╔══╝ ██╔══██║██║╚██╔╝██║ ╚════██║ ╚██╔╝ ██║╚██╔╝██║██║ ██║██║╚██╗██║██╔═██╗ | |
ECHO ███████║ ██║ ███████╗██║ ██║██║ ╚═╝ ██║ ███████║ ██║ ██║ ╚═╝ ██║███████╗██║██║ ╚████║██║ ██╗ | |
ECHO ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ | |
ECHO: | |
EXIT /B 0 | |
:main | |
CALL:printAscii | |
FOR /D %%F IN (%steamFolder%*) DO CALL:linkFolder "%%~nxF" | |
COLOR | |
ECHO [TODOS OS LINKS FEITOS] | |
ECHO: | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment