IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Scripts/Batch Discussion :

** au lieu de chiffres [Batch]


Sujet :

Scripts/Batch

  1. #21
    Membre éclairé

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2012
    Messages
    359
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2012
    Messages : 359
    Points : 738
    Points
    738
    Billets dans le blog
    2
    Par défaut
    Fais comme ça, une fois que tu fais ton choix attend 3 secondes

    Code bat : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    @echo off
    setlocal enabledelayedexpansion
     
    set "MaxLength=6"
    set keystrok=AABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
    set pwd=
    set print=
    set /a "CntChoice=0"
    goto Print
     
    :Choice
    set /a "CntChoice+=1"
    choice /c "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789É" /cs /n /t 3 /d É
    set "UChoice=%ErrorLevel%"
    if %UChoice% EQU 63 goto Continue
    set "pwd=!pwd!!keystrok:~%UChoice%,1!"
    if %CntChoice% LEQ 3 (
      set "print=!pwd!"
    ) else (
      set "print=!print!*"
    )
    :Print
    cls
    set /p "=Votre choix :     !print!" 0>nul
    if %CntChoice% LSS %MaxLength% (
      goto Choice 
    )
    :Continue
    echo.
     
    pause

    Par contre ça reste du bidoullage donc t'attend pas à un truck parfait
    Le gourou dicte la ligne (de commande) à suivre ...

    Penser à lire le Tutoriel Batch ou a consulter la FAQ Batch et ses contributions,
    ainsi que le Cour sur la ligne de commande et des scripts

  2. #22
    Membre à l'essai
    Homme Profil pro
    Eléctricien
    Inscrit en
    Juillet 2014
    Messages
    32
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Eléctricien
    Secteur : Bâtiment

    Informations forums :
    Inscription : Juillet 2014
    Messages : 32
    Points : 11
    Points
    11
    Par défaut
    oui bien-sur je sais que c’est du bidouillage mais je vois pas du tout ou je place cette parti fans mon batch peut tu m'aider stp ??

  3. #23
    Membre éclairé

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2012
    Messages
    359
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2012
    Messages : 359
    Points : 738
    Points
    738
    Billets dans le blog
    2
    Par défaut
    Code bat : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    @echo off
    setlocal enabledelayedexpansion
    cls
    :home 
    @title Utilitaire de commandes
    cls
    echo Created by Galiors
     COLOR 1f
    echo.
    echo.
    echo.
    echo.
     echo                        ***************************MENU PRINCIPALE***************************
    echo.
    echo.
    echo.
    echo   1.Supprimer les fichiers temporaires.
    echo   2.Utilitaire de supression IE.
    echo   3.Vérifie et répare si besoin les fichiers système.
    echo   4.Ouvre l'outil de configuration du système.
    echo   5.Ouvre le gestionnaire de tâche.
    echo   6.Ouvre le gestionaire de réstauration systeme.
    echo   7.Ouvre l'invite de commande (cmd).
    echo   8.Ouvre l'utilitaire de défragmantation.
    echo   9.Optimise votre disque dur (sert qu'une fois).
    echo  10.Change la date.
    echo  11.Change l'heure.
    echo  12.Enlève le Watermark sur Windows 7 numero 7600.
    echo  13.Menu de création de raccourci GodMode.
    echo  14.Ouvre Regedit.
    echo  15.Solution au problème de connexion internet dont l'addresse commence par 169.
    echo  16.Ouvre ipconfig.
    echo  17.Ouvre diskpart. en cour de modif.
    echo  18.Dissocie l'ecran pour un projécteur.
    echo  19.Envoyé/recevoir des fichiers par Bluetooth.
    echo  20.Paramètres de contrôle de compte d'utilisateur.
    echo  21.Arrêt automatique avec temporisation.
    echo  22.Ouvre l'outil Ajouter/Supprimer un programme.
    echo  23.Ouvre les outils d'administrations.
    echo  24.Ouvre l'outil de gestion de l'ordinateur.
    echo  25.Accélérez la vitesse internet.
    echo  26.
    echo  27.
    echo  28.
    echo  29.
    echo  30.
    echo   Q.Quitter
     
    set "MaxLength=6"
    set keystrok=AABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
    set pwd=
    set print=
    set /a "CntChoice=0"
    goto Print
     
    :Choice
    set /a "CntChoice+=1"
    choice /c "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789É" /cs /n /t 3 /d É
    set "UChoice=%ErrorLevel%"
    if %UChoice% EQU 63 goto Continue
    set "pwd=!pwd!!keystrok:~%UChoice%,1!"
    if %CntChoice% LEQ 3 (
      set "print=!pwd!"
    ) else (
      set "print=!print!*"
    )
    :Print
    cls
    set /p "=Votre choix :     !print!" 0>nul
    if %CntChoice% LSS %MaxLength% (
      goto Choice 
    )
    :Continue
    if !pwd!==1 goto 1
    if !pwd!==2 goto IE
    if !pwd!==3 goto 3
    if !pwd!==4 goto 4
    if !pwd!==5 goto 5
    if !pwd!==6 goto 6
    if !pwd!==7 goto 7
    if !pwd!==8 goto 8
    if !pwd!==9 goto 9
    if !pwd!==10 goto 10
    if !pwd!==11 goto 11
    if !pwd!==12 goto 12
    if !pwd!==13 goto 13
    if !pwd!==14 goto 14
    if !pwd!==15 goto 15
    if !pwd!==16 goto 16
    if !pwd!==17 goto 17
    if !pwd!==18 goto 18
    if !pwd!==19 goto 19
    if !pwd!==20 goto 20
    if !pwd!==21 goto 21
    if !pwd!==22 goto 22
    if !pwd!==23 goto 23
    if !pwd!==24 goto 24
    if !pwd!==25 goto 25
    if !pwd!==26 goto 26
    if !pwd!==27 goto 27
    if !pwd!==28 goto 28
    if !pwd!==29 goto 29
    if !pwd!==30 goto 30
    if !pwd!==q goto exit
    if !pwd!==Q goto exit
    if !pwd!==exit goto exit
     
    echo Le choix !pwd! n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto home
     
    :0 
    cls
    goto home
     
     
    :1
    cls 
    rem suppression fichiers temp cookies et internet temp
    del /F /S /Q /A %SystemRoot%\Temp\*.*
    del /F /S /Q /A "%USERPROFILE%\Local Settings\21rary Internet Files\*.*"
    del /F /S /Q /A "%USERPROFILE%\Cookies\*.*"
    del /F /S /Q /A %SystemRoot%\Cookies\*.*
    del /F /S /Q /A "%USERPROFILE%\Local Settings\Temp\*.*"
    cls
    goto fin
     
     
    :IE 
    ---------------------------------------------------------------------------------------
    cls
    @title Utilitaire de supression IE
    echo.
    echo.
    echo.
     echo       ************************* MENU Utilitaire de supression IE *************************
    echo.
    echo.
    echo S'il vous plaît sélectionner la tâche que vous souhaitez exécuter. 
    echo.
     echo  1. Supprime non-confiance Historique Web (faible niveau caché nettoyer).
    echo  2. supprime l'historique.
    echo  3. supprime les cookies.
    echo  4. Supprime les fichiers Internet temporaires.
    echo  5. Supprime les données de formulaire .
    echo  6. Supprime les mots de passe stockés.
    echo  7. supprime tout .
    echo  8. Supprime tous "Supprimer également les fichiers et les paramètres stockés 
    echo     par les modules complémentaires".
    echo  M.Menu principale
    echo  Q.Quitter
     
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto a
    if %choice%==2 goto b
    if %choice%==3 goto c
    if %choice%==4 goto d
    if %choice%==5 goto e
    if %choice%==6 goto f
    if %choice%==7 goto g
    if %choice%==8 goto h
    if %choice%==9 goto i
    if %choice%==m goto home
    if %choice%==M goto home
    if %choice%==q goto exit
    if %choice%==Q goto exit
    if %choice%==exit goto exit
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto IE
     
    :a
    cls
    del /s /q C:\Users\%username%\AppData\Local\Microsoft\Windows\History\low\* /ah
    goto fin1
     
    :b
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
    goto fin1
     
    :c
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 
    goto fin1
     
    :d
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 
    goto fin1
     
    :e
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 
    goto fin1
     
    :f
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 
    goto fin1
     
    :g
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255 
    goto fin1
     
    :h
    cls
    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
    pause
    goto fin1
     
    :i
    cls
    goto home
     
    ---------------------------------------------------------------------------------------
     
    :3
    cls  
    sfc /scannow
    goto fin
     
    :4
    cls
    start MSCONFIG.exe
    goto fin
     
    :5
    cls
    start taskmgr.exe
    goto fin
     
    :6
    cls
    start rstrui.exe
    goto fin
     
    :7
    cls
    start cmd.exe
    goto fin
     
    :8
    cls
    start dfrgui.exe
    goto fin
     
    :9
    cls
    diskperf -n
    diskperf -nv
    diskperf -nd
    goto fin
     
     
    :10
    cls
    date
    goto fin
     
    :11
    cls
    time
    goto fin
     
    :12
    ---------------------------------------------------------------------------------------
    cls
    @title Enlève le Watermark sur Windows 7 numero 7600
    echo.
    echo Cette commande batch va enlever le message en bas a droite que windows a mit en place.
    pause
    cls
    bcdedit.exe -set loadoptions disable_INTEGRITY_CHECKS
    bcdedit.exe -set TESTSIGNING OFF
    echo.
    echo Pour que les commandes soient pris en compte, windows dois redémarrer.
    echo Voulez vous redémarrer? :
    echo ---------------------------------
     echo 1. oui.
     echo 2. non.
     echo 3. non et menu principale.
    echo.
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
    if %choice%==3 goto 3
     
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto 12
     
    :1
    cls
    shutdown -s -t 5
     
    :2
    cls
    exit
     
     
    :3
    cls
    goto home 
     
    ---------------------------------------------------------------------------------------
     
    :13
    cls
    @echo off
    @title Menu de création de raccourci Godmode
    echo.
    echo.
    echo.
    echo       ************************* Menu de création de raccourci Godmode *************************
    echo.
    echo.
    echo Crée un raccourci du mode "Godmode" sur le bureau.
    echo.
    echo  1. Godmode pour Windows Vista
    echo  2. Godmode pour Windows 7.
    echo  3. Godmode pour Windows 8.
    echo  M.Menu principale
    echo  Q.Quitter
     
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
    if %choice%==3 goto 3
    if %choice%==4 goto 4
    if %choice%==m goto home
    if %choice%==M goto home
    if %choice%==q goto exit
    if %choice%==Q goto exit
    if %choice%==exit goto exit
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto 13
     
    :1
    cls
    md C:\Users\Admin\Desktop\GodMode-windows-Vista.{ED7BA470-8E54-465E-825C-99712043E01C}
    goto fin2
     
    :2
    cls
    md C:\Users\Admin\Desktop\GodMode-windows-7.{ED7BA470-8E54-465E-825C-99712043E01C}
    goto fin2
     
    :3
    cls
    md C:\Users\Admin\Desktop\GodMode-windows-8.{ED7BA470-8E54-465E-825C-99712043E01C}
    goto fin2
     
    :4
    cls
    goto home
     
    ---------------------------------------------------------------------------------------
     
    :14
    cls
    regedit.exe
    goto fin
     
    :15
    cls
    netsh interface ip set address "Connexion réseau sans fil" dhcp
    goto fin
     
    :16
    cls
    ipconfig 
    pause
    cls
    goto fin
     
    :17
    cls
    echo.
     
    goto attente
    goto fin
     
    :18
    cls
    start DisplaySwitch.exe
    goto fin
     
    :19
    cls
    start fsquirt.exe
    goto fin
     
    :20
    cls
    start UserAccountControlSettings.exe
    goto fin
     
    :21
    @title Utilitaire de commandes d'arrêt automatique.
    cls
     
    echo.
    echo.
    echo.
    echo.
     echo                        ***************************MENU PRINCIPALE***************************
    echo.
    echo.
    echo.
    echo.
    echo.
    echo  Dans combien de temps voulez vous arreter votre ordinateur??
    echo  selectioner:
    echo              S pour seconde
    echo              M pour minute
    echo              H pour heure
    echo              J pour jour
    echo.
    echo.
    echo.
    echo.
    echo  A.Stop l'arret programmé
    echo  M.Menu principale
    echo  Q.Quitter
     
    set choice=
    echo.
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==s goto seconde
    if %choice%==S goto seconde
    if %choice%==m goto minute
    if %choice%==M goto minute
    if %choice%==h goto heure
    if %choice%==H goto heure
    if %choice%==j goto jour
    if %choice%==J goto jour
    if %choice%==a goto stop
    if %choice%==A goto stop
    if %choice%==m goto home
    if %choice%==M goto home
    if %choice%==q goto exit
    if %choice%==Q goto exit
    if %choice%==exit goto exit
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto 21
     
     
    :seconde
    cls
    @title Combien de secondes ?
    set choice=
    set /p s=Votre choix ?
    shutdown -s -t %s%
    goto 21
     
    :minute
    cls
    @title Combien de minutes ?
    set /p m=Votre choix ?
    set /a t=(%m%*60)
    shutdown -s -t %t%
    goto 21
     
    :heure
    cls
    @title Combien d'heures ?
    set /p h=Votre choix ?
    set /a t=(%h%*60*60)
    shutdown -s -t %t%
     
     
    goto 21
     
     
    :jour
    cls
    @title Combien de jours ?
    set /p j=Votre choix ?
    set /a t=(((%j%*60)*60)*24)
    shutdown -s -t %t%
     
    goto 21
     
    :stop
    shutdown /a
    goto 21
    -----------------------------------------------------------------------------
     
    :22
    cls
    APPWIZ.CPL
    goto home
     
    :23
    cls
    CONTROL ADMINTOOLs
    goto home
     
    :24
    cls
    COMPMGMT.MSC
    goto home
     
    :25
    cls
    netsh int tcp set global congestionprovider=ctcp
    netsh interface tcp set global autotuning=disabled
    cls
    goto fin
     
    :26
    cls
     
    goto attente
    goto fin
     
    :27
    cls
     
    goto attente
    goto fin
     
    :28
    cls
     
    goto attente
    goto fin
     
    :29
    cls
     
    goto attente
    goto fin
     
    :30
    cls
     
    goto attente
    goto fin
     
    -----------------------------------------------------------------------------------
     
    :attente1
    echo Aucune commande n'est disponible par cette valeur choisi. 
    echo 1. Menu principale.
    echo 2. Quiter
    echo.
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto attente1
     
    :1
    cls
    goto xcopy
     
    :2
    cls
    goto exit
     
    ---------------------------------------------------------------------------
     
    :exit
    cls
    exit
     
    ---------------------------------------------------------------------------------------
     
    :fin
    echo La commande a bien été éxecuté.
    echo Menu Principale ? 
    echo.
     echo 1. oui
     echo 2. non et quitter.
    echo.
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto home
     
    :1
    cls
    goto home
     
     
    :2
    cls
    exit
     
     
    ----------------------------------------------------------------------------
     
    :fin1 
    echo La commande a bien été éxecuté. 
    echo.
     echo 1. Menu principale.
     echo 2. Menu utilitaire de supression IE.
     echo 3. Quitter.
    echo.
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
    if %choice%==3 goto 3
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto home
     
    :1
    cls
    goto home
     
     
    :2
    cls
    goto IE
     
    :3
    cls
    exit
     
    ------------------------------------------------------------------------------
     
    :fin2 
    echo La commande a bien été éxecuté. 
    echo.
     echo 1. Menu principale.
     echo 2. Menu de création de raccourci Godmode.
     echo 3. Quitter.
    echo.
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
    if %choice%==3 goto 3
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto home
     
    :1
    cls
    goto home
     
     
    :2
    cls
    goto :13
     
    :3
    cls
    exit
     
    --------------------------------------------------------------------------
     
    :attente
    echo Aucune commande n'est disponible par cette valeur choisi. 
    echo 1. Menu principale.
    echo 2. Quiter
    echo.
    set choice=
    set /p choice=Votre choix ?
    if not '%choice%'=='' set choice=%choice:~0,1000%
    if %choice%==1 goto 1
    if %choice%==2 goto 2
     
    echo Le choix %choice% n'est pas valide.
    timeout>nul /t 1 
    echo.
    goto attente
     
    :1
    cls
    goto home
     
     
     
    :2
    cls
    exit
    Le gourou dicte la ligne (de commande) à suivre ...

    Penser à lire le Tutoriel Batch ou a consulter la FAQ Batch et ses contributions,
    ainsi que le Cour sur la ligne de commande et des scripts

  4. #24
    Membre à l'essai
    Homme Profil pro
    Eléctricien
    Inscrit en
    Juillet 2014
    Messages
    32
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Eléctricien
    Secteur : Bâtiment

    Informations forums :
    Inscription : Juillet 2014
    Messages : 32
    Points : 11
    Points
    11
    Par défaut
    pour toi peut-être que ça marche mais moi ça marche pas
    tu n'as pas le temps de lire les différentes options de mon batch

  5. #25
    Membre éclairé

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2012
    Messages
    359
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2012
    Messages : 359
    Points : 738
    Points
    738
    Billets dans le blog
    2
    Par défaut
    Prend la peine de lire l'aide de la commande choice ("choice /?"), c'est le paramètre "/t" qu'il faut changer ...
    Le gourou dicte la ligne (de commande) à suivre ...

    Penser à lire le Tutoriel Batch ou a consulter la FAQ Batch et ses contributions,
    ainsi que le Cour sur la ligne de commande et des scripts

  6. #26
    Membre à l'essai
    Homme Profil pro
    Eléctricien
    Inscrit en
    Juillet 2014
    Messages
    32
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Eléctricien
    Secteur : Bâtiment

    Informations forums :
    Inscription : Juillet 2014
    Messages : 32
    Points : 11
    Points
    11
    Par défaut
    okok merci beaucoup, je me débrouillerais pour le reste a++ et encore merci

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 2 PremièrePremière 12

Discussions similaires

  1. ** au lieu de chiffres
    Par galiors2013 dans le forum Windows
    Réponses: 2
    Dernier message: 28/07/2014, 13h57
  2. variable alphabetique au lieu de chiffre
    Par Kumral dans le forum Débuter
    Réponses: 2
    Dernier message: 11/03/2014, 10h40
  3. Réponses: 7
    Dernier message: 09/12/2010, 20h12
  4. Réponses: 7
    Dernier message: 12/06/2008, 10h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo