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

Scripts don't work if certain symbols in the folder/path #11

Open
virtuallyvlad opened this issue May 14, 2021 · 0 comments
Open

Scripts don't work if certain symbols in the folder/path #11

virtuallyvlad opened this issue May 14, 2021 · 0 comments

Comments

@virtuallyvlad
Copy link

The ReplaceNotepad.bat script doesn't work if the folder/path has certain symbols in it ("&", "^"). The script will quickly disappear if run from explorer, so you may not get an indication of why it failed. As a workaround, you can temporarily move or rename the folder/path to get the script to run, move/rename it back, and go into the registry and manually correct the path in the value data field. Then it will work fine (SublimeLauncher.exe works fine even with these symbols in the path).

The RevertNotepadRedirection.bat also won't work if the folder path has these symbols in it, but that's an easier workaround since it doesn't matter what folder you run it from: just copy to any other folder without these symbols and run it normally, as administrator, from explorer.

When I tested this, it didn't mind "." or "_" in the folder names, but broke if there was "&" or "^". I didn't test any other combinations.

For an alternative that doesn't involve workarounds, Notepad Replacer worked fine even with a path that had an "&" symbol.

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