SikuliX1 icon indicating copy to clipboard operation
SikuliX1 copied to clipboard

Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x

Open philippepeter opened this issue 5 years ago • 5 comments

I have upgraded from sikulixide 1.1.4 to 2.0.4 (with java 11) and my script that run a .bat doesn't work anymore with :

myApp = App("cmd /c ...)
myApp.open()

In 2.0.4 (and 2.1.0-snapshot) it pops a file explorer window in the sikulixide jar folder instead of running my bat file. In 1.1.4 it's running well. (same java in both cases, windows10, java11 is an adoptjdk jdk)

philippepeter avatar Apr 15 '20 06:04 philippepeter

Thanks for finding. Have to check.

Could you please provide the complete string parameter for App():

myApp = App("cmd /c ...)

RaiMan avatar Apr 15 '20 10:04 RaiMan

Sure, for ex. App.open("cmd /c c:/test/test.bat")

with for a simple test, test.bat: calc.exe

philippepeter avatar Apr 15 '20 12:04 philippepeter

ok, thanks.

RaiMan avatar Apr 15 '20 12:04 RaiMan

Simply use: App.open(r"c:\test\test.bat")

RaiMan avatar Apr 21 '20 16:04 RaiMan

Nevertheless I will add a suitable solution for cases like: App.open("cmd /c start ......")

RaiMan avatar Apr 21 '20 16:04 RaiMan