I am trying to create a script which opens a command prompt and enters a command line.
var cmdpath = "C://WINDOWS/system32/cmd.exe"
var cmdfile =File(cmdpath)
cmdfile.execute() // hopefully open with command /C dir
This currently opens a command prompt window (or PowerShell if you change the path correctly), but I have yet to find a way to get a command line entered into cmd.
I have read a variety of ways it can be done in other Adobe programs app.system, system.callSystem, etc but have yet to find a method for FrameMaker. I have seen a person reference an app Method() but I am unable to find this reference again.