sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27690
Re: [Question #252352]: type ('/') in cmd.exe
Question #252352 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252352
Jonas Maurer proposed the following answer:
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)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.