Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
tuto:gestion_de_parc:ocs:7zip [26/10/2009 16:38] dimitry |
tuto:gestion_de_parc:ocs:7zip [13/07/2012 10:07] dani Page moved and renamed from ocs_7zip to tuto:gestion_de_parc:ocs:7zip |
||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
Voici les fichiers qu'il comprend et leur description: | Voici les fichiers qu'il comprend et leur description: | ||
- | {{:gestion_de_parc:screenhunter_09_oct._26_16.34.gif|}} | + | ***cmdow.exe**: |
- | **7z465.exe**: C’est le fichier d’installation de 7zip pour Windows XP. | + | |
- | **install.vbs**: C’est lui qui sera exécuté par OCS, voici les lignes qu'il contient | + | ***install.bat**: C’est lui qui sera exécuté par OCS, voici les lignes qu'il contient: |
< | < | ||
- | option explicit | + | cmdow.exe @ /HID |
- | dim Shell | + | 7z.exe /S |
- | Set Shell = WScript.CreateObject("WScript.Shell") | + | @echo off |
- | Shell.run "7z465.exe /S" | + | |
- | </code> | + | SETLOCAL |
+ | SET SC=HKLM\SOFTWARE\Classes | ||
+ | SET Extn=001 7z arj bz2 cab cpio deb gz iso lzh nsis rar rpm tar z zip tgz tbz tbz2 | ||
+ | FOR %%j IN (%Extn%) DO ( | ||
+ | REG ADD %SC%\.%%j /VE /D "7-Zip.%%j" | ||
+ | REG ADD %SC%\7-Zip.%%j /VE /D "7z Archive" | ||
+ | REG ADD %SC%\7-Zip.%%j\DefaultIcon | ||
+ | REG ADD %SC%\7-Zip.%%j\shell\open\command | ||
+ | ) | ||
+ | ENDLOCAL | ||
+ | |||
+ | exit | ||
+ | </ | ||
+ |