Quote:
Originally Posted by scoful
Is there an easy way to call a batch file from a widget and pass an argument with it. I'd like to call a batch file from the "Recording Detail" screen with the argument of the selected file and path.
Unfortunately the only Java I know is the kind I drink every morning.
Thanks,
Scott
|
Something like this
Code:
Fork()
Process = ExecuteProcess("\\ext.cmd", GetFileForSegment(GetMediaFileForAiring(Airing), 0), "\\workingdrectory", false)
I'm not sure if my syntax is all OK as this is a hack of some code which is passing a whole pile of variables which I've removed to make it readable. However ExecuteProcess is what you want. If you do a search in the Default STV you'll find a few other examples.
John