home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
TV-Server on WHS - Collection of fixes and workarounds
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="larry_S" data-source="post: 581783" data-attributes="member: 85587"><p><strong>AW: TV-Server on WHS - Collection of fixes and workarounds</strong></p><p></p><p>Hi vvulture,</p><p></p><p>that's not so easy, i Think first.</p><p>Microsoft wrote about the parameter:</p><p></p><p></p><p>The following code is for English (United States).</p><p>If it doesen't work, i need your short Date Format.</p><p></p><p>please replace the code after the SQL-Statement:</p><p>[CODE]if err.number=0 then</p><p> 'Nur wenn kein Fehler aufgetreten ist, normales vorgehen</p><p> if isdate(rs1("Start")) then 'Wenn Aufnahmen programmiert sind oder aktuelle eine läuft...</p><p> Datu0=rs1("Start")</p><p> Datu1=right("00"&month(datu0),2)&"/"&right("00"&day(datu0),2)&"/"&year(datu0)</p><p> Datu2=right("00"&hour(datu0),2)&":"&right("00"&minute(datu0),2)</p><p></p><p> if rs1("Start")<now() then</p><p></p><p> 'Es läuft gerade eine Aufnahme</p><p> aktiv=aktiv+1</p><p> if "A"&WshShell.RegRead("HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme")<>"A"&"01.01.2020" then</p><p> Logdatei "Aktuelle Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName")</p><p> Logdatei "Ändere Taskplaner: 01.01.2020"</p><p> intReturn = WshShell.Run("SCHTASKS /change /ru "&lcase(net.computerName)&"\"&PLUser&" /RP "&chr(34)&PLPW&chr(34)&" /TN MP_Aufnahmen2 /ST 00:00 /SD 01/01/2020" , 1, true)</p><p> WshShell.RegWrite "HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme","01.01.2020","REG_EXPAND_SZ"</p><p> else</p><p> Logdatei "Aktuelle Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName")</p><p> Logdatei "Taskplaner (keine Änderung) = "&rs1("Start")</p><p> end if</p><p> else</p><p> 'Es ist eine Aufnahme geplant, ggf Starttask anlegen</p><p> 'wenn Task nicht schon angelegt wurde, anlegen</p><p> if "A"&WshShell.RegRead("HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme")<>"A"&rs1("Start") then</p><p> Logdatei "nächste Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName")</p><p> Logdatei "Ändere Taskplaner: "&rs1("Start")</p><p> Para="SCHTASKS /change /ru "&lcase(net.computerName)&"\"&PLUser&" /RP "&chr(34)&PLPW&chr(34)&" /TN MP_Aufnahmen2 /ST "&Datu2&" /SD "&Datu1</p><p> Logdatei Para</p><p> intReturn = WshShell.Run(Para, 1, true)</p><p> WshShell.RegWrite "HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme",rs1("Start"),"REG_EXPAND_SZ"</p><p> else</p><p> Logdatei "nächste Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName")</p><p> Logdatei "Taskplaner (keine Änderung) = "&rs1("Start")</p><p> end if</p><p> end if</p><p> end if</p><p> else ' Fehlermeldung loggen, kein Standby</p><p> CheckFehler</p><p> aktiv=aktiv+1</p><p> end if</p><p> db1.close</p><p> 'Fehlerprüfung wieder aktivieren</p><p> on error goto 0</p><p>end if[/CODE]</p></blockquote><p></p>
[QUOTE="larry_S, post: 581783, member: 85587"] [b]AW: TV-Server on WHS - Collection of fixes and workarounds[/b] Hi vvulture, that's not so easy, i Think first. Microsoft wrote about the parameter: The following code is for English (United States). If it doesen't work, i need your short Date Format. please replace the code after the SQL-Statement: [CODE]if err.number=0 then 'Nur wenn kein Fehler aufgetreten ist, normales vorgehen if isdate(rs1("Start")) then 'Wenn Aufnahmen programmiert sind oder aktuelle eine läuft... Datu0=rs1("Start") Datu1=right("00"&month(datu0),2)&"/"&right("00"&day(datu0),2)&"/"&year(datu0) Datu2=right("00"&hour(datu0),2)&":"&right("00"&minute(datu0),2) if rs1("Start")<now() then 'Es läuft gerade eine Aufnahme aktiv=aktiv+1 if "A"&WshShell.RegRead("HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme")<>"A"&"01.01.2020" then Logdatei "Aktuelle Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName") Logdatei "Ändere Taskplaner: 01.01.2020" intReturn = WshShell.Run("SCHTASKS /change /ru "&lcase(net.computerName)&"\"&PLUser&" /RP "&chr(34)&PLPW&chr(34)&" /TN MP_Aufnahmen2 /ST 00:00 /SD 01/01/2020" , 1, true) WshShell.RegWrite "HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme","01.01.2020","REG_EXPAND_SZ" else Logdatei "Aktuelle Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName") Logdatei "Taskplaner (keine Änderung) = "&rs1("Start") end if else 'Es ist eine Aufnahme geplant, ggf Starttask anlegen 'wenn Task nicht schon angelegt wurde, anlegen if "A"&WshShell.RegRead("HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme")<>"A"&rs1("Start") then Logdatei "nächste Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName") Logdatei "Ändere Taskplaner: "&rs1("Start") Para="SCHTASKS /change /ru "&lcase(net.computerName)&"\"&PLUser&" /RP "&chr(34)&PLPW&chr(34)&" /TN MP_Aufnahmen2 /ST "&Datu2&" /SD "&Datu1 Logdatei Para intReturn = WshShell.Run(Para, 1, true) WshShell.RegWrite "HKCU\SOFTWARE\AxoNet Software GmbH\LightsOut\MP_Aufnahme",rs1("Start"),"REG_EXPAND_SZ" else Logdatei "nächste Aufnahme: "&rs1("Channel")&"-"&rs1("Start")&"-"&rs1("endTime")& "-"&rs1("programName") Logdatei "Taskplaner (keine Änderung) = "&rs1("Start") end if end if end if else ' Fehlermeldung loggen, kein Standby CheckFehler aktiv=aktiv+1 end if db1.close 'Fehlerprüfung wieder aktivieren on error goto 0 end if[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
TV-Server on WHS - Collection of fixes and workarounds
Contact us
RSS
Top
Bottom