Continuando maestro me puedes seguir guiando
No me funcionan las tareas programadas pues me dice que no encuentra el archivo...
Estaba pensando usar esto:
AT 6:45 /interactive start
If Not Exist "
%UserProfile%\Escritorio\"
(Set "DesktopPath=
%UserProfile%\Desktop"
) LISTA1.bsl
me preguntaste ¿Porque usas la pipe |?
lo uso así... por qué probé en una máquina virtual Xp y W7 ultímate... y no corría
Hacia abajo asi que lo pegue asi y funciono...
(FOR /R
%%_
in (*DsLogo.exe
) do ("
%%_"
)) | (FOR /R
%%_
in (*DsLogo2.exe
) do ("
%%_"
))
Además añadí o cambie esta parte: porque no logre que corriera como anteriormente
Tasklist|find /i "Bsplayer.exe"
if %errorlevel%==0 Taskkill /F /T /IM "dsclock.exe"
>NUL 2
>&1
|Taskkill /F /T /IM "Dslogo.exe"
>NUL 2
>&1
| Taskkill /F /T /IM "Dslogo2.exe"
>NUL 2
>&1
| Taskkill /F /T /IM "TxTicker.exe"
>NUL 2
>&1
| Call :
Winamp_Key "c"
Para que espere que proceso BSplayer TERMINE de reproducir y se cierre después: Dar PLAY a Winamp, Abrir Dsclock, Abrir Dslogo y Dslogo2 use este código
Pero como dije yo no he utilizado batch más que lo añadí y adpte… pero di me si esta correcto
(
Echo Set WshShell = CreateObject
("WScript.Shell"
^) Echo Set oExec = WshShell.Exec
("BSplayer"
^) Echo Do While oExec.Status = 0
)>"%TEMP%\BSplayer.vbs"
Start /W wscript "%TEMP%\BSplayer.vbs"
Del /Q "
%TEMP%\BSplayer.vbs"
)
Aqui estan todas las lineas.
AT 6:45 /interactive start "%DesktopPath%" LISTA1.bsl
AT 7:30 /interactive start "%DesktopPath%" LISTA2.bsl
AT 8:15 /interactive start "%DesktopPath%" LISTA3.bsl
AT 9:00 /interactive start "%DesktopPath%" LISTA4.bsl
AT 9:45 /interactive start "%DesktopPath%" LISTA1.bsl
AT 10:30 /interactive start "%DesktopPath%" LISTA2.bsl
AT 11:15 /interactive start "%DesktopPath%" LISTA3.bsl
AT 12:00 /interactive start "%DesktopPath%" LISTA4.bsl
AT 12:45 /interactive start "%DesktopPath%" LISTA1.bsl
AT 13:30 /interactive start "%DesktopPath%" LISTA2.bsl
AT 14:15 /interactive start "%DesktopPath%" LISTA3.bsl
AT 15:00 /interactive start "%DesktopPath%" LISTA4.bsl
AT 15:45 /interactive start "%DesktopPath%" LISTA1.bsl
AT 16:30 /interactive start "%DesktopPath%" LISTA2.bsl
AT 17:15 /interactive start "%DesktopPath%" LISTA3.bsl
AT 18:00 /interactive start "%DesktopPath%" LISTA4.bsl
AT 18:45 /interactive start "%DesktopPath%" LISTA1.bsl
AT 19:30 /interactive start "%DesktopPath%" LISTA2.bsl
AT 20:15 /interactive start "%DesktopPath%" LISTA3.bsl
AT 21:00 /interactive start "%DesktopPath%" LISTA4.bsl
AT 21:45 /interactive start "%DesktopPath%" LISTA1.bsl
AT 22:30 /interactive start "%DesktopPath%" LISTA2.bsl
AT 23:15 /interactive start "%DesktopPath%" LISTA3.bsl
AT 0:00 /interactive start "%DesktopPath%" LISTA4.bsl
START /D "%Programfiles%\Winamp\" winamp.exe
START /D "%Programfiles%\DS Clock\" dsclock.exe
(FOR /R
%%_
in (*DsLogo.exe
) do ("
%%_"
)) | (FOR /R
%%_
in (*DsLogo2.exe
) do ("
%%_"
))
:Loop
::[PASO 4] Busque El Proceso BSplayer y al encontrarlo: CERRAR Dsclock.exe, Dslogo.exe, Dslogo2.exe, TextTicker.exe y PAUSE Winamp
Tasklist|find /i "Bsplayer.exe"
if %errorlevel%==0 Taskkill /F /T /IM "dsclock.exe"
>NUL 2
>&1
|Taskkill /F /T /IM "Dslogo.exe"
>NUL 2
>&1
| Taskkill /F /T /IM "Dslogo2.exe"
>NUL 2
>&1
| Taskkill /F /T /IM "TxTicker.exe"
>NUL 2
>&1
| Call :
Winamp_Key "c"
::[PASO 5] Esperar que proceso BSplayer TERMINE de reproducir y se cierre después: Dar PLAY a Winamp, Abrir Dsclock, Abrir Dslogo y Dslogo2
(
Echo Set WshShell = CreateObject
("WScript.Shell"
^) Echo Set oExec = WshShell.Exec
("BSplayer"
^) Echo Do While oExec.Status = 0
)>"%TEMP%\BSplayer.vbs"
Start /W wscript "%TEMP%\BSplayer.vbs"
Del /Q "
%TEMP%\BSplayer.vbs"
)
START /D "%Programfiles%\DS Clock\" dsclock.exe
(FOR /R
%%_
in (*DsLogo.exe
) do ("
%%_"
)) | (FOR /R
%%_
in (*DsLogo2.exe
) do ("
%%_"
))
:Winamp_Key
:: Hotkeys Winamp:
::
:: c=Pause
:: x=Play
::
(
Echo Set objShell = WScript.CreateObject
("WScript.Shell"
^) Echo Success = objShell.AppActivate
("winamp"
^) Echo objShell.SendKeys "
%~1"
)>"%TEMP%\winamp.vbs"
Start /W wscript "%TEMP%\winamp.vbs"
Del /Q "
%TEMP%\Winamp.vbs"
)
::[PASO 6] repetir hasta Etiqueta 1