|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
ExecuteProcess - Where am I going wrong?
Hey everyone,
I run VideoRedo's quick stream fix on any unplayable R5000 recordings. Having to manually go to the computer to run it gets annoying, so I'm trying to make a button which will run it from SageTV. I've been using a batch file that was posted a while back on the forum for running the quick stream fix. I can't seem to get it to run from SageTV though. I have the following in an action widget beneath a button: Quote:
Any idea what I'm doing wrong? Thanks. |
#2
|
||||
|
||||
it may be that you need to switch from using unix style forward-slashes to windows backslashes...
ie, C:\QFIXSAGE\qfixsage.bat instead of C:/QFIXSAGE/qfixsage.bat
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
Thanks stuckless.
I tried that and it made no difference. I can get programs like notepad.exe to run, but I can't seem to get this batch file to run at all. Any other thoughts? |
#4
|
||||
|
||||
Works for me with various batch files. Note that if the last argument is true you won't see a console window pop up on screen.
Since you can launch Notepad, it seems like the next logical step would be to create a batch file that calls Notepad (or does any other trivial task) and see if you can get ExecuteProcess to launch that successfully. You might also (if you haven't already) try running the problematic batch file from a command prompt to make sure it works that way. When in doubt, break the test case down into smaller pieces and test each piece separately to isolate the problem.
__________________
-- Greg |
#5
|
||||
|
||||
How about
ExecuteProcess("C\:\\QFIXSAGE\\qfixsage.bat", GetFileForSegment(GetMediaFileForAiring(Airing), 0), "C\:\\QFIXSAGE", true) John |
#6
|
||||
|
||||
What is the command line to run quickfix as a stand alone batch file?
After manually testing the stand alone batch file, it should be easy to have the utility "DirMon2" monitor your recording directories, then kick off the batch file for each recording as it finishes, just like "DirMon2" can automatically run Comskip or ShowAnalyzer on each recording after the files stop growing in size, outside of SageTV. Dave |
#7
|
|||
|
|||
Your call to ExecuteProcess looks correct, although like others have pointed out I've had to use double backslashes in the path to get Sage to parse it correctly, ie:
ExecuteProcess("C:\\QFIXSAGE\\qfixsage.bat", GetFileForSegment(GetMediaFileForAiring(Airing), 0), "C:\\QFIXSAGE\\", true) But if Notepad is opening correctly that doesn't seem to be your problem. My guess is that there is a problem in your code before it gets to that point - for instance an invalid Airing handle - something that would make the call to GetFileForSegment return NULL or garbage. In that scenario your batch file would probably launch, but maybe quit immediately when it thinks there's nothing to process and you're not able to catch it happening in task manager. You could verify that better in something like procmon, or by maybe altering the batch file to print out what args were passed to it and then pausing... Huh. I just noticed this question is a few weeks old. Not sure anyone cares anymore, but what the heck. Last edited by lazysean; 03-30-2009 at 06:51 PM. Reason: I'm unobservant. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ExecuteProcess forcing called app to "unhide" | kricker | SageTV Studio | 1 | 07-24-2008 12:24 PM |
SageTV picking the wrong source or and tranmist to the wrong STB | TechBill | SageTV Software | 34 | 09-28-2007 06:19 AM |
executeprocess arguments | evilpenguin | SageTV Studio | 4 | 04-27-2006 08:41 AM |
Something is wrong... Please help!! | tangfj | SageTV Beta Test Software | 4 | 04-22-2004 11:06 PM |