Batch aide avec time
mesbric2208@voila.fr
-
mesbric2208 Messages postés 32 Date d'inscription Statut Membre Dernière intervention -
mesbric2208 Messages postés 32 Date d'inscription Statut Membre Dernière intervention -
salut a tous !je suis novice en programmation et j'ai besoins d'un ptit coup de pouce :
voila le code d'un de mes fichier BATCH (.bat).
il permet de faire comme un ptit réveil en lançant Vlc avec un raccourci qui comprend deja une playlist a ouvrir.
j'ai été obligé de mettre plusieur test car la prise d'info sur le time n'est pas a la micro seconde prés et de PLUS j'ai essayé de mettre un set /P pour une entré manuel au lancement du script qui demand l'heure du réveil mais j'arrive pas à l'intégrer dans le chemin avec des %%
HELP ME en me donnant toute les idées que vous aurez svp MERCI
==> SCRIPT .bat
@echo off
:deb
set tm=%time%
echo %tm%
if "%tm%" == "9:30:00,00" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,00" exit
if "%tm%" == "9:30:00,01" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,01" exit
if "%tm%" == "9:30:00,02" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,02" exit
if "%tm%" == "9:30:00,03" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,03" exit
if "%tm%" == "9:30:00,04" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,04" exit
if "%tm%" == "9:30:00,05" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,05" exit
if "%tm%" == "9:30:00,06" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,06" exit
if "%tm%" == "9:30:00,07" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,07" exit
if "%tm%" == "9:30:00,08" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,08" exit
if "%tm%" == "9:30:00,09" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,09" exit
if "%tm%" == "9:30:00,10" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,10" exit
if "%tm%" == "9:30:00,11" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,11" exit
if "%tm%" == "9:30:00,12" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,12" exit
if "%tm%" == "9:30:00,13" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,13" exit
if "%tm%" == "9:30:00,14" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,14" exit
if "%tm%" == "9:30:00,15" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,15" exit
if "%tm%" == "9:30:00,16" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,16" exit
if "%tm%" == "9:30:00,17" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,17" exit
if "%tm%" == "9:30:00,18" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,18" exit
if "%tm%" == "9:30:00,19" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,19" exit
if "%tm%" == "9:30:00,20" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,20" exit
goto deb
voila le code d'un de mes fichier BATCH (.bat).
il permet de faire comme un ptit réveil en lançant Vlc avec un raccourci qui comprend deja une playlist a ouvrir.
j'ai été obligé de mettre plusieur test car la prise d'info sur le time n'est pas a la micro seconde prés et de PLUS j'ai essayé de mettre un set /P pour une entré manuel au lancement du script qui demand l'heure du réveil mais j'arrive pas à l'intégrer dans le chemin avec des %%
HELP ME en me donnant toute les idées que vous aurez svp MERCI
==> SCRIPT .bat
@echo off
:deb
set tm=%time%
echo %tm%
if "%tm%" == "9:30:00,00" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,00" exit
if "%tm%" == "9:30:00,01" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,01" exit
if "%tm%" == "9:30:00,02" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,02" exit
if "%tm%" == "9:30:00,03" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,03" exit
if "%tm%" == "9:30:00,04" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,04" exit
if "%tm%" == "9:30:00,05" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,05" exit
if "%tm%" == "9:30:00,06" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,06" exit
if "%tm%" == "9:30:00,07" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,07" exit
if "%tm%" == "9:30:00,08" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,08" exit
if "%tm%" == "9:30:00,09" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,09" exit
if "%tm%" == "9:30:00,10" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,10" exit
if "%tm%" == "9:30:00,11" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,11" exit
if "%tm%" == "9:30:00,12" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,12" exit
if "%tm%" == "9:30:00,13" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,13" exit
if "%tm%" == "9:30:00,14" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,14" exit
if "%tm%" == "9:30:00,15" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,15" exit
if "%tm%" == "9:30:00,16" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,16" exit
if "%tm%" == "9:30:00,17" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,17" exit
if "%tm%" == "9:30:00,18" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,18" exit
if "%tm%" == "9:30:00,19" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,19" exit
if "%tm%" == "9:30:00,20" call "C:\Documents and Settings\All Users\Bureau\VLC zic teuf.lnk"
if "%tm%" == "9:30:00,20" exit
goto deb
A voir également:
- Batch aide avec time
- Popcorn time - Télécharger - TV & Vidéo
- Finish time lite - Télécharger - Utilitaires
- Fichier batch - Guide
- Quick time - Télécharger - Lecture
- Salat time - Télécharger - Agendas & Calendriers