Hello there,
I have to drive a relay with a commande line which is : CommandApp_USBRelay.exe ÿÿÿÿÿ open 01
this works perfectly if I use the command line in the CMD windows but not in a BAT file.
ÿÿÿÿÿ is the relay ID and is the problem whe nusing inside a .BAT file.
I have another relais with a different ID which is : 959BI and in this case, no problem, it works in a BAT file.
I tryed a few things, cote, slash.. but can"t find a way to force it.
Any idea ?
Thanks
TMC
Comand line and special character
Moderator: DosItHelp
-
- Posts: 1
- Joined: 22 Nov 2020 12:07
Comand line and special character
Last edited by aGerman on 22 Nov 2020 14:46, edited 1 time in total.
Reason: advertising link removed
Reason: advertising link removed
Re: Comand line and special character
Try a CHCP 1252 before you're calling the executable.
Steffen
Steffen
Re: Comand line and special character
I bet the character ÿ has got the code 0xFF, which is seen as the non-break space (NBSP) and constitutes a standard token separator, just like: SPACE TAB , ; = VTAB FF.top megacool wrote: ↑22 Nov 2020 12:19ÿÿÿÿÿ is the relay ID and is the problem whe nusing inside a .BAT file.
I guess escaping each by ^ like ^ÿ^ÿ^ÿ^ÿ^ÿ is not going to help yet worth a try. Or does the application allow quotation of its arguments, like "ÿÿÿÿÿ" to protect these special characters? Changing the code page in addition as already suggested) might also help; I would also try CHCP 437…