Skip to content

Commit

Permalink
Fix Robocopy Not Copying for Users who have a Space in their name (#1851
Browse files Browse the repository at this point in the history
)

This was pointed out in #1848 issue
  • Loading branch information
og-mrk authored Apr 20, 2024
1 parent 272e4d1 commit c3e447d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/tweaks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,7 @@
taskkill.exe /F /IM \"explorer.exe\"

Write-Host \"Copy all OneDrive to Root UserProfile\"
Start-Process -FilePath robocopy -ArgumentList \"$env:USERPROFILE\\OneDrive $env:USERPROFILE /e /xj\" -NoNewWindow -Wait
Start-Process -FilePath powershell -ArgumentList \"robocopy '$($env:USERPROFILE.TrimEnd())\\OneDrive' '$($env:USERPROFILE.TrimEnd())\\' /e /xj\" -NoNewWindow -Wait

Write-Host \"Remove OneDrive\"
Start-Process -FilePath winget -ArgumentList \"uninstall -e --purge --force --silent Microsoft.OneDrive \" -NoNewWindow -Wait
Expand Down

0 comments on commit c3e447d

Please sign in to comment.