-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShow-CloudDrives.bat
More file actions
39 lines (35 loc) · 913 Bytes
/
Show-CloudDrives.bat
File metadata and controls
39 lines (35 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
title Clean Explorer - Restore Cloud Drives
color 0E
echo.
echo ========================================
echo Clean Explorer - Restore Cloud Drives
echo ========================================
echo.
echo This will restore OneDrive and Dropbox
echo to your File Explorer sidebar.
echo.
pause
echo.
echo [1/3] Restoring OneDrive...
regedit /s "%~dp0show-onedrive.reg" 2>nul
if %errorlevel% equ 0 (
echo SUCCESS - OneDrive restored
) else (
echo WARNING - Check if show-onedrive.reg exists
)
echo.
echo [2/3] Restoring Dropbox...
powershell -ExecutionPolicy Bypass -File "%~dp0Restore-Dropbox.ps1"
echo.
echo [3/3] Restarting Windows Explorer...
taskkill /f /im explorer.exe >nul 2>&1
start explorer.exe
echo.
echo ========================================
echo DONE!
echo ========================================
echo.
echo Cloud drives restored to sidebar.
echo.
timeout /t 5