FrEn

E-mail Print

Comment créer un fichier batch?

Written by Administrator  |  Sunday, 20 September 2009 10:25
AddThis Social Bookmark Button
Un fichier batch est une liste de commande exécutée automatiquement par le système à chaque ouverture du fichier. C’est un fichier texte qui a pour extension .bat et dont les contenus ne sont que des commandes et des commentaire.
Le fichier AUTOEXEC.BAT dans la racine de votre disque système est un fichier batch exécuté par le système à chaque démarrage.

Exemple:
Si vous voulez supprimer un virus dans la racine de votre disque dur, vous devrez d’abord entrer dans la racine, désactiver les attributs des fichiers et les supprimer.
Exemple avec le virus Autorun-C[Trij]/Win32.NSAnti.r:
C:\>attrib -s -h -r autorun.inf
C:\>attrib -s -h -r avpo.exe
C:\>cd Windows\system
C:\Windows>attrib -s -h -r avp*.*
C:\Windows>del avp*.*
C:\Windows>


Cet exemple ne comporte que quelques lignes mais imaginez si voulez supprimer ce virus dans un réseau comportant une dizaine de machine, le mieux est de créer un fichier batch contenant ces commandes et de lancer ce fichier à chaque poste infecté.
Pour créer un fichier batch
1. Ouvrez le bloc note de Windows
2. Copiez (ou tapez) vos commandes dans le bloc note
3. Enregistrez le fichier avec une extension .bat.

N’oubliez pas de mettre des guillemets autour du nom de fichier pour que le bloc note n’aille pas renommer votre fichier en nom.bat.txt (par exemple) au lieu de nom.bat.

Astuce :
Pour mettre des commentaires dans le fichier, débutez la commande par le mot REM.
Exemple :
REM Désactivation des attributs
C:\>attrib -s -h -r autorun.inf
C:\>attrib -s -h -r avpo.exe


Pour ne pas afficher les commandes, précédez-les d’un ‘@’
Exemple :
@ C:\>attrib -s -h -r autorun.inf

De cette façon, les commandes exécutées ne vont plus s’afficher à l’écran.

Pour utiliser les noms de fichier longs, entourez les d’un guillemet
Exemple :
C:\>cd “Documents and Settings\Administrateur\Local Settings”
 

Comments  

 
0 #1 amoxicillin 2012-01-13 10:55
Who watches TV series Dexter? When will the new season?
buy zithromax online
Quote
 

Add comment


Security code
Refresh

Related articles
Latest posts
  • Free malware removal tool for Guard Online

    Written by %s admin 10/10/2011
    Guard Online is a another rogue Antispyware from the OpenCloud and AV Guard Online familly, it's a malware that pretends to be an Antivirus. Guard Online conducts a fake scan of your system; you are…
  • Free malware removal tool to remove AV Guard Online

    Written by %s admin 05/10/2011
    AV Guard Online is a another rogue Antispyware from the OpenCloud familly, it's a malware that pretends to be an Antivirus. AV Guard Online conducts a fake scan of your system; you are warned by a…
  • Free removal tool to remove Security Guard 2012

    Written by %s admin 05/10/2011
    Security Guard 2012 is a another rogue Antispyware from the OpenCloud familly, it's a malware that pretends to be an Antivirus. Security Guard 2012 conducts a fake scan of your system; you are warned…
  • Free removal tool for Advanced PC Shield 2012

    Written by %s admin 01/10/2011
    Advanced PC Shield 2012 is a another rogue Antispyware, it's a malware that pretends to be an Antivirus. Advanced PC Shield 2012 conducts a fake scan of your system; you are warned by a fake alarm…
  • Security Sphere 2012 Free Removal Tool

    Written by %s admin 01/10/2011
    Security Sphere 2012 is another spyware from the Security Tool family. Security Sphere 2012 is not a legit program; it's a fake, a counterfeit. Security Sphere 2012 claims to fix your system, but…
  • Free malware removal tool for Guard Online

    Written by %s admin 10/10/2011
    Guard Online is a another rogue Antispyware from the OpenCloud and AV Guard Online familly, it's a malware that pretends to be an Antivirus. Guard Online conducts a fake scan of your system; you are…
  • Free malware removal tool to remove AV Guard Online

    Written by %s admin 05/10/2011
    AV Guard Online is a another rogue Antispyware from the OpenCloud familly, it's a malware that pretends to be an Antivirus. AV Guard Online conducts a fake scan of your system; you are warned by a…
  • Free removal tool to remove Security Guard 2012

    Written by %s admin 05/10/2011
    Security Guard 2012 is a another rogue Antispyware from the OpenCloud familly, it's a malware that pretends to be an Antivirus. Security Guard 2012 conducts a fake scan of your system; you are warned…
  • Free removal tool for Advanced PC Shield 2012

    Written by %s admin 01/10/2011
    Advanced PC Shield 2012 is a another rogue Antispyware, it's a malware that pretends to be an Antivirus. Advanced PC Shield 2012 conducts a fake scan of your system; you are warned by a fake alarm…
  • Security Sphere 2012 Free Removal Tool

    Written by %s admin 01/10/2011
    Security Sphere 2012 is another spyware from the Security Tool family. Security Sphere 2012 is not a legit program; it's a fake, a counterfeit. Security Sphere 2012 claims to fix your system, but…
.
Information | Contact

© All Rights Reserved. net-studio.org 2009