SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2006, 10:59 PM
scoful's Avatar
scoful scoful is offline
Sage Aficionado
 
Join Date: Jun 2006
Location: Lawrence, Kansas
Posts: 373
Call Batch File

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
__________________
SageTV 9 / 3 SageTV Clients / Ceton InfiniTV 6 / ComSkip
Reply With Quote
  #2  
Old 12-06-2006, 10:31 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.