Skip to content

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

@virtuallyvlad

Description

@virtuallyvlad

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions