Created
June 29, 2024 20:07
-
-
Save shakeyourbunny/cda86db77dc30eeef795bffd24c7e34c to your computer and use it in GitHub Desktop.
linkify multiple game drives to one unified one
This file contains hidden or 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 | |
set OFDIR=M:\SITES\GOG_OVERFLOW | |
set DESTDIR=R:\SITES\GOG | |
echo ---- link gog / game folders together ---- | |
echo . (c) 2022/08 shakeyourbunny | |
echo. | |
echo unified disk with the symbolic links (your "game drive"): %DESTDIR% | |
echo disk with other game folders : %OFDIR% | |
echo. | |
echo ** CHECK PATHS FIRST BEFORE CONTINUEING ** | |
echo you need administrative rights to do so! | |
echo. | |
echo. | |
echo !!! symbolic links on the main game drive will be DELETED before recreation !!! | |
echo. | |
pause | |
cd /D %DESTDIR% | |
echo Removing old links in %DESTDIR%. | |
for /f %%c in ('dir /al /b') do rmdir %%c | |
dir /b /Ad %OFDIR% > overflow_directories.txt | |
for /f %%c in ('type overflow_directories.txt') do mklink /D %%c %OFDIR%\%%c | |
echo. | |
echo. | |
echo Symbolic links have been created. List of links is put in the file overflow_directories.txt for reference. | |
pause | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment