One drive is still active.
So here is the new batch file: This will account for one drive being there and one drive not being there, so either way it works.
Save this as onedrive.bat
Right click and run as admin.
You will then right click [COLOR=rgb(243, 121, 52)]kill.bat that is located in the documents folder.
Click edit
Then highlight and delete everything.
Copy this inside the code box below.
Paste into the kill.bat that you have open.
Close and when prompted save the changes.
[/COLOR]
So here is the new batch file: This will account for one drive being there and one drive not being there, so either way it works.
Save this as onedrive.bat
Right click and run as admin.
Code:
@echo off setlocal EnableDelayedExpansion IF EXIST "%USERPROFILE%\OneDrive\Documents" ( SET KILL_BATCH_PATH="%USERPROFILE%\OneDrive\Documents\tools\kill.bat" ) ELSE ( SET KILL_BATCH_PATH="%USERPROFILE%\Documents\tools\kill.bat" ) SET KEY="HKEY_CLASSES_ROOT\Directory\Background\shell\KillBatch" SET COMMAND="HKEY_CLASSES_ROOT\Directory\Background\shell\KillBatch\command" reg add %KEY% /t REG_SZ /d "Run Kill Batch" /f reg add %COMMAND% /t REG_SZ /d "!KILL_BATCH_PATH!" /f taskkill /f /im explorer.exe start explorer.exe exit /b
Click edit
Then highlight and delete everything.
Copy this inside the code box below.
Paste into the kill.bat that you have open.
Close and when prompted save the changes.
Code:
@echo off IF EXIST "%USERPROFILE%\OneDrive\Documents\tools\KillEmAll.exe" ( "%USERPROFILE%\OneDrive\Documents\tools\KillEmAll.exe" /auto ) ELSE ( "%USERPROFILE%\Documents\tools\KillEmAll.exe" /auto ) IF EXIST "%USERPROFILE%\OneDrive\Documents\tools\ReduceMemory_x64.exe" ( "%USERPROFILE%\OneDrive\Documents\tools\ReduceMemory_x64.exe" /O ) ELSE ( "%USERPROFILE%\Documents\tools\ReduceMemory_x64.exe" /O ) exit
Comment