← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #295488]: runScript("powershell E:\\a.bat") Error

 

Question #295488 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295488

    Status: Open => Answered

Manfred Hampl proposed the following answer:
You have two possibilities for starting commands and scripts:

1. the command (or script) is located in a directory that is part of the path
or
2. you provide the absolute path in the command

I suggest that you do the following:

In sikuli you start the script by providing its full path, e.g. 
runScript("powershell E:\\a.bat")

AND

Inside the E:\a.bat script you also provide the full path for all commands that you execute in this script, or you set the path and/or change directory inside this script in a way that it works from whatever current directory it is started.
This has nothing to do with sikuli, but is plain Windows command and script execution.

Have you already tried modifying the E:\a.bat script by adding a change
directory command as the first instruction?

I cannot understand how a "cp - ***" would fail if you provide the full path.
Note: "cp" is the syntax of the copy command on Unix system; on Windows it has to be "copy". Maybe that is the cause of an error message.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.