Skip to content

Instantly share code, notes, and snippets.

@shakeyourbunny
Created March 21, 2025 10:14
Show Gist options
  • Save shakeyourbunny/34ffbe6e5af4ec2bf8794769086002a0 to your computer and use it in GitHub Desktop.
Save shakeyourbunny/34ffbe6e5af4ec2bf8794769086002a0 to your computer and use it in GitHub Desktop.
extend hard disk space by symlinking directories to a secondary drive.
@shakeyourbunny
Copy link
Author

This script adds all directorys from %OFDIR% into the %DESTDIR" as symbolic links.

In essence, you just move your offline GOG folders to the other drive into %OFDIR%, start the script and they will be linked back as symbolic links. The download scripts (ie gogrepoc) should not notice a difference and their downloads will be redirected to the respective folder in %OFDIR%.

Some notes:

  • it does only work with NTFS drives (and within Windows)
  • your logged in user needs the SeCreateSymbolicLinkPrivilege privilege.
  • if you are not administrator, add yourself in the local security policy under Security Settings > Local Policies > User Rights Assignment > create symbolic links policy.
  • double check before the first start, if you got the directories right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment