[1.0.1] - 'Files' is not recognized as an internal or external command, operable program or batch file. Error when runninh Sikuli script from command line.

Asked by Eugene S

Greetings,

I receive the following error when running Sikuli script from command line:
'Files' is not recognized as an internal or external command, operable program or batch file

I run the script like that (Assume my current math to be C:\SikuliX):
runScript.cmd -r c:\SikuliX\Tests\Test.sikuli

Eventually, the scripts runs normally.
I have viewed the runScript.cmd file but haven't found anything weird, or even any mention of command with "File" in it.

Any idea why this might happen?

Thanks!
Eugene

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
RaiMan (raimund-hocke) said :
#1

Uuups, no idea.

Just tested with the same path setup in a Win 7 32-Bit using runIDE.cmd (which is the same apart from using another jar), but had no problems.

This usually happens if there are some paths used in a script containing blanks and are not quoted.

A candidate always is c:\Program Files

I did not have any problems with the command file until now, but you might try to purge the stuff about the evaluating of the Java exe path and make your own command file with fixed paths

@echo off
SETLOCAL

set SIKULIX_HOME=%~dp0
set PARMS=-Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine

set SIKULI_COMMAND=%*
PATH=%SIKULIX_HOME%libs;%PATH%
java %PARMS% -jar "%SIKULIX_HOME%sikuli-script.jar" %SIKULI_COMMAND%

ENDLOCAL

This has to be in the folder c:\SikuliX and on command line you have to be in c:\SikuliX or or has to be run using c:\SikuliX\myRunScript.cmd

Can you help with this problem?

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

To post a message you must log in.