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

Escape the set commands in Windows batch file #44

Merged

Conversation

SammyIsConfused
Copy link
Contributor

This is intended to address #39.

So in Windows, the Admin Console Package will not work with certain characters in the file path. This is because the set commands in the batch file were not escaped, so when special characters come up they are evaluated during the set command as parts of the command rather than a string value.
This can be avoided by surrounding the content of the set commands with double quotes, to escape the strings and also enabling delayed expansion.

Copy link
Member

@edalex-ian edalex-ian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heya Sam,

Thanks for this. Just some queries...

launcher-scripts/Windows-launcher.bat Outdated Show resolved Hide resolved
launcher-scripts/Windows-launcher.bat Outdated Show resolved Hide resolved
Copy link
Member

@edalex-ian edalex-ian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@edalex-ian edalex-ian modified the milestone: 1.1 May 14, 2021
@SammyIsConfused SammyIsConfused merged commit 248f1b4 into develop May 14, 2021
@SammyIsConfused SammyIsConfused mentioned this pull request Jul 6, 2021
@SammyIsConfused SammyIsConfused deleted the bugfix/allow_special_characters_in_windows_path branch July 8, 2021 06:16
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

Successfully merging this pull request may close these issues.

3 participants