Open Andrew67 opened 8 years ago
For option 2, "rem" also can't handle "(" or ")" (which don't get URLEncoded, at least by JS). However, I was planning to add it to end of file so I might as well throw it in as regular text, it's going to be after the exit anyway. Unless this still manages to break "cmd". We'll see.
Did the user not bookmark the URL for their batch file? They should have a way to import based on the generated file!
Possible alternatives:
Tried option 2, but rem errors out due to "/?" portion being interpreted as flag, after encountering "=". Workaround: redirect URL such as "/e?". Bonus: can track imports from URL via server HTTP logs. In all alternatives, will have to consider "rem" pitfalls. Will append to end of batch file with instructions at the top, to avoid having cmd parse the long comment at all.