Windows: App.open("cmd.exe") does not open a new command window when running from command line --- use the start command instead with os.popen()
Problem is pretty straightforward. I am trying to run a sikuli script that opens up a command prompt window (sikuli is also being run from the command line). My code is as follows:
cmdPath = os.getenv(
cmdWindow= App.open(cmdPath )
time.sleep(15)
App.focus(
type("echo Hello")
However, instead of launching a new window (like it does with, say, Internet Explorer), it apparently opens a new cmd window inside the existing cmd window (again, I'm running Sikuli from the command line already). I get the following output:
[log] App.open C:\Windows\
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\
[error] App.focus failed: C:\Windows\
[log] TYPE "echo Hello"
echo Hello
Any idea what is going on here?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Lebron Jones for more information if necessary.