This sends ok
Code:
reaper.ExecProcess("cmd /c c: & cd C:/Users/Band In A Box/AppData/Roaming/REAPER/Scripts/ReaTrak/sendmidi & start /min sendmidi.exe dev MIDI Mapper pc 17 channel 1 on 64 90 clock 80 ",-1)
but when I start cmd it's in another folder so I have to change to root "c:" as it won't "cd" from there then change directory "cd" to the script location.
I need to start the cmd minimized start /min but could not work that out I could only add it for sendmidi.exe so there is still a quick flash of the command window. EDIT: -2 switch gives me minimized
I want to be able to use the script_path
Quote:
local info = debug.getinfo(1,'S');
script_path = info.source:match[[^@?(.*[\/])[^\/]-$]]
|
maybe there's a better way to send the command line, or natively in Lua ????