I am attempting to create a batch script to deliver an instruction to an application to open a file instead of using my mouse to click Open File -> and then manually selecting it (app has a GUI and no native command line support I am aware of, although it is open source and I have the code available to me).
Basically, all this script needs to do is to fill out a field in the application which has a total of two fields. I am trying to figure out a way to do this with no input from the user apart from execution of the command.
If anyone could help with this, I would greatly appreciate it.
I have tried simply executing the file with the program, this does not work. I also determined through the source code that the program defines the path variable as "WDL_String variable", although I am not quite sure what to do with this information.
*.txt
file from cmd with something likenotepad C:\path\to\your\textfile.txt
. Perhaps you can do the same with your*.exe
.WDL_String initFileName; WDL_String initPath(this->myPath.remove_filepart()); pGraphics->PromptForFile( initFileName, initPath, EFileAction::Open, "zip", [&](const WDL_String &fileName, const WDL_String &path) {
To open a dialog box and allow you to choose your file. I want to populate the path by command line instead.