I am trying to run a command that deletes folders that start with CefSharp* through PDQ Deploy on a computer and it keeps failing with the following error: LOCALAPPDATA~G" was unexpected at this time.
for /d %G in ("%LOCALAPPDATA%\Temp\CefSharp*") do rd /s /q "%~G"
When I run the above command on the computer in command prompt it works and deletes all the folders in the current user's appdata\local\temp folder that start with CefSharp.
What am I missing?
Please sign in to leave a comment.