ايجاد مسار ملف و فتحه في نافذة الاوامر بضغطة واحدة (ضغط زر shift + ضغط باليمين على الملف و اختيار Open command window here
 |
أوامر مهمة cool tricks msdos موقع الرهان |
///////////////////////////////////////////
@Echo off
GOTO MENU
:MENU
Echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Echo www.arrihane.com
Echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Echo !! Gestion de l'arret du systeme !!
Echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Echo 1 - Shutdown / i9af...
Echo 2 - restart / i3adat tachril...
Echo 3 - cancel / ilra2...
Echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
SET /p Action=your choice (1,2 ou 3) :
IF %Action% == 1 GOTO PlanifierArret
IF %Action% == 2 GOTO PlanifierRedemarrage
IF %Action% == 3 GOTO AnnulerPlanification
IF %Action% GTR 3 GOTO SaisieIncorrecte
:AnnulerPlanification
shutdown -a
Echo canceled
Goto Fin
:PlanifierRedemarrage
Echo !! Info : 1 heure = 3600 secondes !
SET /p Secondes= Secondes to restart :
IF '%Secondes%' == '' GOTO PlanifierRedemarrage
shutdown -r -t %Secondes%
GOTO Fin
:PlanifierArret
Echo !! Info : 1 heure = 3600 secondes !
SET /p Secondes= Secondes to shutdown :
IF '%Secondes%' == '' GOTO PlanifierArret
shutdown -s -f -t %Secondes%
GOTO Fin
:SaisieIncorrecte
CLS
Echo ! Attention : something is wrong !
GOTO Menu
///////////////////////////////////////////