Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: --chdir switch with space in the path #381

Open
TinyVanessa opened this issue Oct 23, 2024 · 0 comments
Open

Issue: --chdir switch with space in the path #381

TinyVanessa opened this issue Oct 23, 2024 · 0 comments

Comments

@TinyVanessa
Copy link

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"

@TinyVanessa TinyVanessa changed the title Issue: --chdr switch with space in the path Issue: --chdir switch with space in the path Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant