My AutoIt script :
WinWaitActive("Open")
Send($CmdLine[1])
Send("{ENTER}")
I execute it from Java (passing a filepath to it):
String autoITExecutable = "C:\\filechooser.exe " + fileSource;
Name of file contains spaces, so it reads filename up to the first space and ignores the remainder. How do I correctly pass filepaths containing spaces as command line argument?