type ('/') in cmd.exe

Asked by adrien

Hello everybody,
I have tried to type (set PATH=C:\nom\du\répertoire\de\PuTTY\;%PATH%) in cmd.exe and i lock with the error "java error language" i can't use paste is not work. More when i have this error that l lock my keyboard i was oblige to reboot my computer for recover my keyboard.

How can i resolve that please ?

Best regards,
A.H

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

It doesn't seem to be related to Sikuli in any way. Try asking that question on relevant QA site (like stackoverflow).

Cheers,
Eugene

Revision history for this message
Jonas Maurer (jonas-maurer) said :
#2

I think he is trying to enter a path in cmd.exe with sikulix.
The "java langue error" is due to a syntax error which isn't checked at compile time.

Your argument string is formatted incorrectly:

both paste and type accept string arguments who start and end with the " sign.
 The Backslash "\" is an escape character, you have to type "\\" if you want to enter a litteral backslash.

so what you want is more in the lines of:

paste ("set PATH=C:\\nom\\du\\répertoire\\de\\PuTTY\\;%PATH%")

now, as Adrien already pointed out pasting isn't possible in cmd.exe so he tries to use the type function.
I know that type does not support the following symbols: " = : \ " among others.
I have yet to find a good way to circumvent that situation.

But on the other hand, you are working with CMD, and all CMD commands can be executed using a BATCH file.
Simply put the set path command into a batch file and execute it. (or instruct sikuli to execute that batch file)

(how to work with batch files is no longer sikuli related, but I bet this page might help: http://en.wikipedia.org/wiki/.bat)

Revision history for this message
Eugene S (shragovich) said :
#3

Ok, I missed the "paste" part so I misunderstood the question.

The " = : \ " shouldn't be a problem for type. For typing "\", you will have to "exit" it first, like that" "\\".
The problem in this case is probably the non-English characters so try changing your path.

Revision history for this message
Jonas Maurer (jonas-maurer) said :
#4

his path is fine, the problem is probably his obviously french keyboard.

I just realized where the main problem is:
as far as I know Sikuli only works on US keyboards flawlessly.
I have a swiss keyboard, that is why I can not use type("=:\\") properly (I tested it, it's a no-go). (It's why I use paste whenever possible.)
And he has, judging by the path on his machine, a french keyboard, and knowing their layout they are in for worse problems.

He can't do anything with the path as long as the backslash is not typed properly.
Perhaps, he might create a parser that replaces the problematic char values with working ones.
Judging by the way how he formats his strings however, I think it's too difficult for his current level of programming skills.

Can you help with this problem?

Provide an answer of your own, or ask adrien for more information if necessary.

To post a message you must log in.