You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the issues previously reported and could not see what I am reporting. Also, I googled to find an explanation and could not find any relevant info.
I recently discovered gsudo.exe while looking for an alternative to NSudoLC.exe (archived), to run as system so I don't have to keep changing the access rights. I ran few tests to see how the switches behave before I use them, I discovered that the switch --chdir fails if the path has spaces.
I am looking for an explanation not a workaround, I can implement my own workarounds, including not using the tool.
Examples:
(1) OK = works
C:\Users\Public\Downloads>gsudo.exe -i system -s -d --chdir C:\Users\Default dir /b
Desktop
Documents
Downloads
Music
NTUSER.dat
Pictures
Videos
(2) ERROR = Fails (because of the spaces)
C:\Users\Public\Downloads>gsudo.exe -i system -s -d --chdir "C:\Program Files\Internet Explorer" dir /b
Error: Invalid directory: "C:\Program Files\Internet Explorer"
The text was updated successfully, but these errors were encountered:
TinyVanessa
changed the title
Issue: --chdr switch with space in the path
Issue: --chdir switch with space in the path
Oct 23, 2024
I checked the issues previously reported and could not see what I am reporting. Also, I googled to find an explanation and could not find any relevant info.
I recently discovered gsudo.exe while looking for an alternative to NSudoLC.exe (archived), to run as system so I don't have to keep changing the access rights. I ran few tests to see how the switches behave before I use them, I discovered that the switch --chdir fails if the path has spaces.
I am looking for an explanation not a workaround, I can implement my own workarounds, including not using the tool.
Examples:
(1) OK = works
C:\Users\Public\Downloads>gsudo.exe -i system -s -d --chdir C:\Users\Default dir /b
Desktop
Documents
Downloads
Music
NTUSER.dat
Pictures
Videos
(2) ERROR = Fails (because of the spaces)
C:\Users\Public\Downloads>gsudo.exe -i system -s -d --chdir "C:\Program Files\Internet Explorer" dir /b
Error: Invalid directory: "C:\Program Files\Internet Explorer"
The text was updated successfully, but these errors were encountered: