Skip to content

Instantly share code, notes, and snippets.

@BadgerCode
Last active October 6, 2016 15:33
Show Gist options
  • Save BadgerCode/1f0e52b349b90f88c614a869f4e71237 to your computer and use it in GitHub Desktop.
Save BadgerCode/1f0e52b349b90f88c614a869f4e71237 to your computer and use it in GitHub Desktop.
:: Initial set up:
:: 1. Install firefox in Z:\Programs\Firefox
:: 2. Open up firefox and copy your profile from "C:\Users\YOUR_USERNAME_HERE\AppData\Local\Mozilla\Firefox\Profiles"
:: 2.1 Put it in Z:\Programs\Firefox
:: 2.2 Rename it to profile
:: 3. Save this script somewhere in your Z drive (the root makes this the easiest to access)
:: 3.1 Make a script in your Z drive which calls this scipt. E.g.
:: Save this as Z:\SetupProfiles.bat
:: Make Z:\Startup.bat with the following lines:
:: Z:\SetupProfiles.bat
:: 4. Replace psymh3 with your username
:: \YOUR_USERNAME_HERE/
SET username=psymh3
::Firefox
::Try to delete existing profiles
FOR /D %%p IN ("C:\Users\%username%\AppData\Local\Mozilla\Firefox\Profiles") DO rmdir "%%p" /s /q
::Add new profile. Will silently fail if it already exists.
Z:\Programs\Firefox\firefox.exe -CreateProfile "%username% Z:\Programs\Firefox\profile"
:: Open up profile manager
start /b Z:\Programs\Firefox\firefox.exe -p
:: Make deceptive, non-synced user folders in C drive less deceptive
if not exist "C:\Users\%username%\Desktop\#DO-NOT-SAVE-HERE" copy /b NUL "C:\Users\%username%\Desktop\#DO-NOT-SAVE-HERE"
if not exist "C:\Users\%username%\Documents\#DO-NOT-SAVE-HERE" copy /b NUL "C:\Users\%username%\Documents\#DO-NOT-SAVE-HERE"
if not exist "C:\Users\%username%\Downloads\#DO-NOT-SAVE-HERE" copy /b NUL "C:\Users\%username%\Downloads\#DO-NOT-SAVE-HERE"
if not exist "C:\Users\%username%\Music\#DO-NOT-SAVE-HERE" copy /b NUL "C:\Users\%username%\Music\#DO-NOT-SAVE-HERE"
if not exist "C:\Users\%username%\Pictures\#DO-NOT-SAVE-HERE" copy /b NUL "C:\Users\%username%\Pictures\#DO-NOT-SAVE-HERE"
if not exist "C:\Users\%username%\Videos\#DO-NOT-SAVE-HERE" copy /b NUL "C:\Users\%username%\Videos\#DO-NOT-SAVE-HERE"
:: TODO: Prevent logging off
:: Open up Notepad++ (any files you "Edit with Notepad++" will open in it)
start /b Z:\Programs\Notepad++\notepad++.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment