Advertisement
HeyDudeWheresTheFood

AddRobloxClientSettings.bat

Apr 25th, 2023 (edited)
2,010
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.04 KB | Gaming | 1 0
  1. ::
  2. :: This file will copy your downloaded ClientAppSettings.json file to your latest Roblox Player directory.
  3. :: By HeyDudeWheresTheFood on Roblox. 2023-04-25.
  4. ::
  5. :: You can run this file manually before using Roblox, as the ClientAppSettings file won't be in your latest Roblox update.
  6. :: This file can be saves to the same folder as the ClientAppSettings.json file you downloaded into your Downloads folder and create a shortcut to this file on your Desktop for maximum convenience.
  7. ::
  8. :: *** NOTE: You must set your own _ClientSettingsFileLocation below. ***
  9. ::
  10.  
  11. @echo off
  12.  
  13. :: *** Set this to your downloaded file location inside the quotes, remove any \ at the end of the file location. ***
  14. set _ClientSettingsFileLocation="C:\Users\HeyDude\Downloads\2023-04-25-Roblox-Client-Optimizer"
  15.  
  16. echo. && echo.
  17.  
  18. :: Gets the latest Roblox version directory by listing in bare format /b and sort order with oldest first /O:D so that the last entry is the newest version, then store as variable _CurrentRobloxVersion.
  19. for /f %%i in ('dir %USERPROFILE%\AppData\Local\Roblox\Versions\version* /b /O:D') do set _CurrentRobloxVersion=%%i
  20.  
  21. :: Display the variable _CurrentRobloxVersion
  22. echo  Roblox: %_CurrentRobloxVersion%
  23. echo. && echo.
  24.  
  25. :: Set _RobloxLocation to point to the latest Roblox Player path location.
  26. set _RobloxLocation=%USERPROFILE%\AppData\Local\Roblox\Versions\%_CurrentRobloxVersion%
  27.  
  28. :: Make directory called ClientSettings, if it already exists then do nothing.
  29. IF not exist %_RobloxLocation%\ClientSettings ( mkdir %_RobloxLocation%\ClientSettings )
  30.  
  31. echo.
  32. echo  Copying your ClientAppSettings.json file to the Roblox folder. . .
  33. echo.
  34. :: Copy your source file to the ClientSettings subfolder in the current Roblox Version folder.
  35. copy /Y %_ClientSettingsFileLocation%\ClientAppSettings.json %_RobloxLocation%\ClientSettings
  36.  
  37. echo.
  38. echo  Complete.
  39. echo. && echo.
  40.  
  41. :: Set to timeout countdown before exit -or- a pause that requires user to press any key. Comment out as required with :: at start of line.
  42. TIMEOUT /T 10
  43. ::pause
  44.  
  45. exit
  46.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment
Advertisement