I’m having issues with my Windows setup after Google Drive syncs my backup. Even when I’m an admin, I can’t use rmdir
in the command line to delete folders without the force
option. This is causing problems with a Capacitor script I use, which tries to use rmdir
.
I’ve already given full control permissions, but it’s not helping. Now I have to manually delete all the generated stuff before each backup, which is a pain.
When I try in PowerShell, I get: You do not have sufficient access rights to perform this operation.
Has anyone run into this? Any ideas on how to fix it? I really need to keep my files in sync without all this manual work. Thanks for any help!
I’ve dealt with this exact problem before, and it’s incredibly frustrating. What worked for me was disabling the Windows File System Redirector. This component sometimes interferes with file operations, especially when dealing with synced cloud storage.
To do this, you’ll need to edit the registry. Open regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem, and set LongPathsEnabled to 1. Restart your computer after making this change.
If that doesn’t solve it, try running your Capacitor script with elevated privileges. You can create a shortcut to the script, go to its properties, and check ‘Run as administrator’ under the Compatibility tab.
Lastly, consider using a different sync tool like SyncBackPro or FreeFileSync. They often handle permissions better than Google Drive’s native sync.
I’ve encountered similar issues with Google Drive sync and folder deletion on Windows. One workaround that’s worked for me is using the ‘takeown’ command followed by ‘icacls’ to reset folder permissions. Open an elevated Command Prompt and run:
takeown /f “path\to\folder” /r /d y
icacls “path\to\folder” /grant administrators:F /t
This should give you full control over the problematic folders. Alternatively, you might want to consider using rclone instead of Google Drive’s native sync. It offers more granular control and often avoids these permission quirks. Just be sure to test thoroughly before integrating it into your backup workflow.