Batch

Fermé
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 - 31 juil. 2010 à 20:21
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 - 5 août 2010 à 04:28
Bonjour,
jessaye des créer un petti programme batchpour mentrainer mais jai un probleme jai créer un programme qui dis taper un nom et sa creras un fichier de ce nom jusque la sa va mais apres jaimerais quon puisse taper un message et il va directement dans le fichier sous forme de txt jai essaye beaucoup de chose mais rien a faire aider moi svp

cordialement garkil!!!

p.s. je vous donne le code et si vous trouver comment faire modifier le code et metter le dans le sujet merci




@echo off
set /p dossier=dis le nom du dossier que tu veut et sa creeras un dossier de ce nom
md %dossier%
set /p message mainteanant ecrit un message et il iras sous forme de txt dans le dossier que tu a choisi le nom!!!
et je bug ici!!!



merci de maider recordialement garkil


5 réponses

BeFaX Messages postés 14245 Date d'inscription mercredi 24 décembre 2008 Statut Contributeur Dernière intervention 6 août 2013 3 812
31 juil. 2010 à 20:26
@echo off
set /p dossier=Nom du Dossier ? :
md %dossier%
set /p message=Message a 'crire dans le fichier ? :
echo %message% >>%dossier%\Message.txt

start %dossier%\Message.txt
1
jee pee Messages postés 39639 Date d'inscription mercredi 2 mai 2007 Statut Modérateur Dernière intervention 26 avril 2024 9 235
Modifié par jee pee le 31/07/2010 à 20:26
Salut,

set /p message=ton texte  
echo %message% >message.txt 

cdlt


Un étranger, c'est un ami qu'on n'a pas encore rencontré.
0
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
31 juil. 2010 à 22:12
merci a befax qui vien de regler mon probleme maintenant si tu vx (befax ) jaimerai voir quelque fichier bat que tu a fais voir si je suis comparable a toi :D
0
BeFaX Messages postés 14245 Date d'inscription mercredi 24 décembre 2008 Statut Contributeur Dernière intervention 6 août 2013 3 812
Modifié par BeFaX le 31/07/2010 à 22:28
J'en doute ^^, voici une toute petite partie d'un de mes programmes.
Cette partie sert à nettoyer les fichiers temporaires de Windows 7.

:: Programme crée par BeFa  
:: Membre de batch.xoo.it  

title BFSCleaner par BeFa  
                   
Rem ---------------------- Copyright ----------------------------------  

:: Code par BeFa, ne pas copier, modifier, distribuer ce code sans mon autorisation  
:: Ne pas supprimer ce Copyright, merci.  

Rem ---------------------- Copyright ----------------------------------  


(echo.  
echo  ^|==================================================================^|  
echo  ^|                  Fichier Récents                                 ^|  
echo  ^|==================================================================^|)>log.txt  
dir /B "%appdata%\Microsoft\Windows\Recent\*.lnk" 2>nul  
if "%errorlevel%"=="1" echo  ^|>>log.txt  
for /f "delims=" %%a in ('dir /B "%appdata%\Microsoft\Windows\Recent\*.lnk"') do (  
del /F /S /Q "%appdata%\Microsoft\Windows\Recent\%%a"  
if exist "%appdata%\Microsoft\Windows\Recent\%%a" (echo  ^|%appdata%\Microsoft\Windows\Recent\%%a - [Verrouillé]>>log.txt) else (echo  ^|%appdata%\Microsoft\Windows\Recent\%%a - Supprimé>>log.txt))  
(echo  ^|==================================================================^|  
echo  ^|                  Fichiers Windows Temporaires                    ^|  
echo  ^|==================================================================^|)>>log.txt  
for /f "delims=" %%a in ('dir /A:D /B %tmp%') do (  
  rmdir /S /Q "%tmp%\%%a"  
  if exist "%temp%\%%a" (echo  ^|%tmp%\%%a\ - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\%%a\ - Supprimé>>log.txt))  
for /f "delims=" %%a in ('dir /B %tmp%') do (  
  del /F /S /Q "%tmp%\%%a"  
  if exist "%temp%\%%a" (echo  ^|%tmp%\%%a - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\%%a - Supprimé>>log.txt))  
for /f "delims=" %%a in ('dir /A:D /B %windir%\TEMP') do (  
  rmdir /S /Q "%windir%\TEMP\%%a"  
  if exist "%windir%\Temp\%%a" (echo  ^|%windir%\Temp\%%a\ - [Verrouillé]>>log.txt) else (echo  ^|%windir%\Temp\%%a\ - Supprimé>>log.txt))  
for /f "delims=" %%a in ('dir /B %windir%\TEMP') do (  
  del /F /S /Q "%windir%\TEMP\%%a"  
  if exist "%windir%\TEMP\%%a" (echo  ^|%windir%\Temp\%%a - [Verrouillé]>>log.txt) else (echo  ^|%windir%\Temp\%%a - Supprimé>>log.txt))  
(echo  ^|==================================================================^|  
echo  ^|                  Fichiers Internet Temporaires                   ^|  
echo  ^|==================================================================^|)>>log.txt  
set FIT=0  
for /f "delims=" %%a in ('dir /B "%localappdata%\Microsoft\Windows\Temporary Internet Files\AntiPhishing\*.dat"') do (  
  DEL /Q /F "%localappdata%\Microsoft\Windows\Temporary Internet Files\AntiPhishing\%%a"  
  set FIT=1  
  if exist "%localappdata%\Microsoft\Windows\Temporary Internet Files\AntiPhishing\%%a" (echo  ^|%localappdata%\Microsoft\Windows\Temporary Internet Files\AntiPhishing\%%a - [Verrouillé]>>log.txt) else (echo  ^|%localappdata%\Microsoft\Windows\Temporary Internet Files\AntiPhishing\%%a - Supprimé>>log.txt))  
if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\desktop.ini" (  
  attrib -H -S -I "%tmp%\Fichiers Internet temporaires\Content.IE5\desktop.ini"  
  DEL /F /Q "%tmp%\Fichiers Internet temporaires\Content.IE5\desktop.ini"  
  if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\desktop.ini" (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\desktop.ini - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\desktop.ini - Supprimé>>log.txt))  
if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\index.dat" (  
  attrib -H -S -I "%tmp%\Fichiers Internet temporaires\Content.IE5\index.dat"  
  DEL /F /Q "%tmp%\Fichiers Internet temporaires\Content.IE5\index.dat"  
  if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\dindex.dat" (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\index.dat - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\index.dat - Supprimé>>log.txt))  
for /f "delims=" %%a in ('dir /A:D /B "%tmp%\Fichiers Internet temporaires\Content.IE5\"') do (  
  attrib -H -S -D -I "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\"  
  attrib -H -S -I "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\desktop.ini"  
  DEL /F /Q "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\desktop.ini"  
  if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\desktop.ini" (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\desktop.ini - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\desktop.ini - Supprimé>>log.txt)  
  for /f "delims=" %%b in ('dir /B "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\"') do (  
    attrib -A -I "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\%%b"  
    DEL /F /Q "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\%%b"  
    set FIT=1  
    if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\%%b" (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\%%b - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\%%b - Supprimé>>log.txt)))  
for /f "delims=" %%a in ('dir /A:D /B "%tmp%\Fichiers Internet temporaires\Content.IE5\"') do (  
  RMDIR /Q /S "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\"  
  set FIT=1  
  if exist "%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\" (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\ - [Verrouillé]>>log.txt) else (echo  ^|%tmp%\Fichiers Internet temporaires\Content.IE5\%%a\ - Supprimé>>log.txt))  
if "%FIT%"=="0" echo  ^|>>log.txt  
(echo  ^|==================================================================^|  
echo  ^|                  Cookies Windows                                 ^|  
echo  ^|==================================================================^|)>>log.txt  
set cook=0  
for /f "delims=" %%a in ('dir /B %appdata%\Microsoft\Windows\Cookies') do (  
del /F /S /Q "%appdata%\Microsoft\Windows\Cookies\%%a"  
set cook=1  
if exist "%windir%\TEMP\%%a" (echo  ^|%appdata%\Microsoft\Windows\Cookies\%%a - [Verrouillé]>>log.txt) else (echo  ^|%appdata%\Microsoft\Windows\Cookies\%%a - Supprimé>>log.txt))  
if exist "%appdata%\Microsoft\Windows\Cookies\" (  
  rmdir /S /Q "%appdata%\Microsoft\Windows\Cookies\"  
  set cook=1  
  if exist "%appdata%\Microsoft\Windows\Cookies\" (echo  ^|%appdata%\Microsoft\Windows\Cookies\ - [Verrouillé]>>log.txt) else (echo  ^|%appdata%\Microsoft\Windows\Cookies\ - Supprimé>>log.txt))  
if "%cook%"=="0" echo  ^|>>log.txt  
(echo  ^|==================================================================^|  
echo  ^|                  Fichiers Prefetch                               ^|  
echo  ^|==================================================================^|)>>log.txt  
dir /B "%windir%\Prefetch\*.pf"  
if "%errorlevel%"=="1" echo  ^|>>log.txt  
for /f "tokens=*" %%a in ('dir /B "%windir%\Prefetch\*.pf"') do (  

DEL /F /S /Q "%windir%\Prefetch\%%a"  
if exist "%WINDIR%\Prefetch\%%a"  (echo  ^|%WINDIR%\Prefetch\%%a - [Verrouillé]>>log.txt) else (echo  ^|%WINDIR%\Prefetch\%%a - Supprimé>>log.txt))   
for /f "delims=" %%a in ('dir /B /A:D "%localappdata%\Mozilla\Firefox\Profiles"') do (  
set profile=%localappdata%\Mozilla\Firefox\Profiles\%%a  
set ff=%localappdata%\Mozilla\Firefox\Profiles\%%a)  
(echo  ^|==================================================================^|  
echo  ^|                  Cache Mozilla Firefox                           ^|  
echo  ^|==================================================================^|)>>log.txt  
set cacheff=0  
for /f "delims=" %%a in ('dir /B /A:D "%localappdata%\Mozilla\Firefox\Profiles"') do (  
  set profile=%localappdata%\Mozilla\Firefox\Profiles\%%a  
  set prof=%%a)  
if exist "%appdata%\Mozilla\Firefox\Profiles\%prof%\downloads.sqlite" (  
  set cacheff=1  
  DEL /Q /F "%appdata%\Mozilla\Firefox\Profiles\%prof%\downloads.sqlite"  
  if exist "%appdata%\Mozilla\Firefox\Profiles\%prof%\downloads.sqlite" (echo  ^|%appdata%\Mozilla\Firefox\Profiles\%prof%\downloads.sqlite - [Verrouillé]>>log.txt) else (echo  ^|%appdata%\Mozilla\Firefox\Profiles\%prof%\downloads.sqlite - Supprimé>>log.txt))  
for /f "delims=" %%a in ('dir /B /A:D "%profile%"') do call :ff %%a  
for /f "delims=" %%a in ('dir /B /A:D "%profile%"') do (  
  rmdir /S /Q "%profile%\%%a"  
  if exist "%profile%\%%a" (echo  ^|%profile%\%%a\ - [Verrouillé]>>log.txt) else (echo  ^|%profile%\%%a\ - Supprimé>>log.txt))  
for /f "delims=" %%a in ('dir /B /A:D "%profile%"') do set cacheff=1  
if "%cacheff%"=="0" echo  ^|>>log.txt  
goto next1  
:ff  
set cacheff=1  
set var=%*  
for /f "delims=" %%a in ('dir /B "%profile%\%var%\"') do (   
  del /F /S /Q "%profile%\%var%\%%a"  
  if exist "%profile%\%var%\%%a" (echo  ^|%profile%\%var%\%%a - [Verrouillé]>>log.txt) else (echo  ^|%profile%\%var%\%%a - Supprimé>>log.txt))  
goto :eof  
:next1  
(echo  ^|==================================================================^|  
echo  ^|                  Macromedia Flash Player                         ^|  
echo  ^|==================================================================^|)>>log.txt  
set flash=0  
for /f "delims=" %%a in ('dir /A:D /B "%appdata%\Macromedia\Flash Player\#SharedObjects\"') do (  
  for /f "delims=" %%b in ('dir /A:D /B "%appdata%\Macromedia\Flash Player\#SharedObjects\%%a\"') do (  
    RMDIR /Q /S "%appdata%\Macromedia\Flash Player\#SharedObjects\%%a\%%b\"  
    set flash=1  
    if exist "%appdata%\Macromedia\Flash Player\#SharedObjects\%%a\%%b\" (echo  ^|%appdata%\Macromedia\Flash Player\#SharedObjects\%%a\%%b\ - [Verrouillé]>>log.txt) else (echo  ^|%appdata%\Macromedia\Flash Player\#SharedObjects\%%a\%%b\ - Supprimé>>log.txt)))  
for /f "delims=" %%a in ('dir /A:D /B "%appdata%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\"') do (  
  rmdir /Q /S "%appdata%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\%%a\"  
  if exist "%appdata%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\%%a\" (echo  ^|%appdata%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\%%a\ - [Verrouillé]>>log.txt) else (echo  ^|%appdata%\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\%%a\ - Supprimé>>log.txt))  
if "%flash%"=="0" echo  ^|>>log.txt  
(echo  ^|==================================================================^|  
echo  ^|                  Windows Defender                                ^|  
echo  ^|==================================================================^|)>>log.txt  
set wdef=0  
for /f "delims=" %%a in ('dir /B "%programdata%\Microsoft\Windows Defender\Scans\History\Results\Resource\"') do (  
  DEL /Q /F "%programdata%\Microsoft\Windows Defender\Scans\History\Results\Resource\%%a"  
  set wdef=1  
  if exist "%programdata%\Microsoft\Windows Defender\Scans\History\Results\Resource\%%a" (echo  ^|%programdata%\Microsoft\Windows Defender\Scans\History\Results\Resource\%%a - [Verrouillé]>>log.txt) else (echo  ^|%programdata%\Microsoft\Windows Defender\Scans\History\Results\Resource\%%a - Supprimé>>log.txt))  
if "%wdef%"=="0" echo  ^|>>log.txt  
start log.txt



Voici ensuite, mon programme : http://www.cijoint.fr/cj201007/cijIL3NgQL.txt
Et ici la partie du programme qui permet d'afficher un résumé simple de l'ordinateur ainsi que les programmes qui se lancent au démarrage de Windows, et aussi les processus actifs :


:boot 
if exist "%temp%\dxdiag.txt" goto next 
dxdiag /t %temp%\dxdiag.txt 
:next 
(echo. 
echo  ^|======================================================^| 
echo  ^|      Résumé de l'ordinateur                          ^| 
echo  ^|======================================================^| 
echo  ^|)>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "System Manufacturer"') do echo  ^|  Carte mère  : %%b >>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "System Model"') do echo  ^|  Modèle      : %%b >>boot.txt 
for /f "tokens=1,2,3* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "Processor"') do call :del %%b 
for /f "tokens=1,2* delims=]" %%a in ('type 01.tmp') do ( 
echo  ^|  Processeur  :  %%a 
echo  ^|  Modèle      :  %%b 
)>>boot.txt 
if exist 01.tmp del /F /Q 01.tmp >NUL 
goto nextr 
:del 
set var=%* 
set var=%var:     =]% 
echo %var%>01.tmp 
goto :eof 
:nextr 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "   Memory"') do echo  ^|  Mémoire     : %%b >>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "Machine name"') do echo  ^|  Nom PC      : %%b >>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "DirectX Version"') do echo  ^|  DirectX     : %%b >>boot.txt 
echo  ^|>>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "Card name"') do echo  ^|  Carte Graph.: %%b >>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "Display Memory"') do echo  ^|  Mém. Graph  : %%b >>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "Monitor Model"') do echo  ^|  Ecran       : %%b >>boot.txt 
for /f "tokens=1,2* delims=:" %%a in ('type %temp%\dxdiag.txt ^| find "Driver Date/Size"') do echo  ^|  Drivers     : %%b %%c >>boot.txt 
(echo  ^| 
echo  ^|======================================================^| 
echo  ^|      Liste des logiciels démarrant avec Windows      ^| 
echo  ^|======================================================^| 
echo  ^|)>>boot.txt 
for /f "delims=" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /s ^| find "REG_SZ"') do call :test %%a 
for /f "tokens=1,2* delims=]" %%b in ('type 01.tmp') do ( 
echo  ^| [HKLM\..\Run\] : [%%b] 
echo  ^|                  %%c 
echo  ^|)>>boot.txt 
if exist 01.tmp del /F /Q 01.tmp >NUL 
for /f "delims=" %%a in ('reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /s ^| find "REG_SZ"') do call :test %%a 
for /f "tokens=1,2* delims=]" %%b in ('type 01.tmp') do ( 
echo  ^| [HKCU\..\Run\] : [%%b] 
echo  ^|                  %%c 
echo  ^|)>>boot.txt 
if exist 01.tmp del /F /Q 01.tmp >NUL 
for /f "delims=" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /s ^| find "REG_SZ"') do call :test %%a 
for /f "tokens=1,2* delims=]" %%b in ('type 01.tmp') do ( 
echo  ^| [HKLM\..\RunOnce\] : [%%b] 
echo  ^|                      %%c 
echo  ^|)>>boot.txt 
if exist 01.tmp del /F /Q 01.tmp >NUL 
for /f "delims=" %%a in ('reg query "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /s ^| find "REG_SZ"') do call :test %%a 
for /f "tokens=1,2* delims=]" %%b in ('type 01.tmp') do ( 
echo  ^| [HKCU\..\RunOnce\] : [%%b] 
echo  ^|                      %%c 
echo  ^|)>>boot.txt 
(echo  ^|======================================================^| 
echo  ^|      Liste des processus actifs                      ^| 
echo  ^|======================================================^|&echo  ^|)>>boot.txt 
for /f "tokens=1,2* delims= " %%a in ('tasklist /NH /FI "MEMUSAGE GT 80"') do ( 
if "%%~$PATH:a"=="" (echo  ^| [%%a] : [Introuvable]>>boot.txt) else (echo  ^| [%%a] %%~$PATH:a>>boot.txt)) 
echo  ^|>>boot.txt 
echo  ^|######################################################^|>>boot.txt 
if exist 01.tmp del /F /Q 01.tmp >NUL 
start boot.txt & exit 
:test 
set var=%* 
set var=%var:"=% 
set var=%var:    REG_SZ    =]% 
set var=%var: REG_SZ =]% 
echo %var%>>01.tmp 
goto :eof


Je doute donc que nous ayons le même niveau en BATCH, mais je suis disponible pour le moindre problème.
0
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
3 août 2010 à 00:27
juste une chose a dire...wow!!!!! ta des fichier batch de mon nivo a me montrer stp en tout cas bravo
0
BeFaX Messages postés 14245 Date d'inscription mercredi 24 décembre 2008 Statut Contributeur Dernière intervention 6 août 2013 3 812
3 août 2010 à 01:40
Mot défilant :
@echo off
mode con cols=75 & mode con lines=15
echo     _   _ _       __      __     
echo    ^| \ ^| (_)      \ \    / /\    
echo    ^|  \^| ^|_  ___ __\ \  / /  \   
echo    ^| . ' ^| ^|/ __/ _ \ \/ / /\ \  
echo    ^| ^|\  ^| ^| (_^| (_) \  / ____ \ 
echo    ^|_^| \_^|_^|\___\___/ \/_/    \_\
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo        _   _ _       __      __     
echo       ^| \ ^| (_)      \ \    / /\    
echo       ^|  \^| ^|_  ___ __\ \  / /  \   
echo       ^| . ' ^| ^|/ __/ _ \ \/ / /\ \  
echo       ^| ^|\  ^| ^| (_^| (_) \  / ____ \ 
echo       ^|_^| \_^|_^|\___\___/ \/_/    \_\
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo           _   _ _       __      __     
echo          ^| \ ^| (_)      \ \    / /\    
echo          ^|  \^| ^|_  ___ __\ \  / /  \   
echo          ^| . ' ^| ^|/ __/ _ \ \/ / /\ \  
echo          ^| ^|\  ^| ^| (_^| (_) \  / ____ \ 
echo          ^|_^| \_^|_^|\___\___/ \/_/    \_\
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo              _   _ _       __      __     
echo             ^| \ ^| (_)      \ \    / /\    
echo             ^|  \^| ^|_  ___ __\ \  / /  \   
echo             ^| . ' ^| ^|/ __/ _ \ \/ / /\ \  
echo             ^| ^|\  ^| ^| (_^| (_) \  / ____ \ 
echo             ^|_^| \_^|_^|\___\___/ \/_/    \_\
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo                 _   _ _       __      __     
echo                ^| \ ^| (_)      \ \    / /\    
echo                ^|  \^| ^|_  ___ __\ \  / /  \   
echo                ^| . ' ^| ^|/ __/ _ \ \/ / /\ \  
echo                ^| ^|\  ^| ^| (_^| (_) \  / ____ \ 
echo                ^|_^| \_^|_^|\___\___/ \/_/    \_\
echo.
echo                       Pr'sente ...
ping 127.0.0.1 -n 4 >nul
pause


Même en cherchant bien, je n'ai pas de scripts à ton niveau, mais je peux te conseiller d'aller foir quelques forums et de t'inspirer de ceux-ci.

https://www.developpez.net/forums/f519/general-developpement/programmation-systeme/windows/scripts-batch/
https://forum.hardware.fr/hfr/Programmation/Shell-Batch/liste_sujet-1.htm
https://batch.xoo.it/index.php
0
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
3 août 2010 à 02:08
bonjour,bravo (encore XD) pour lecriture du texte deroulant et je me demandais si tu pouvais faire le meme style mais avec comme nom Garkill
et aussi je cherche comment transformer fichier batch en .exe
merci pour les foum je regarde atentivement
garkill
0
karirovax Messages postés 3221 Date d'inscription dimanche 17 janvier 2010 Statut Membre Dernière intervention 22 juin 2016 203
3 août 2010 à 21:25
salut garkill

pour transformer le batch en .exe il faut unpetit logiciel bat-to-exe-converter :

lien :

http://www.download25.com/install/bat-to-exe-converter.html

lien direct :

http://www.f2ko.de/downloads/Bat_To_Exe_Converter.zip

bonne chance ;)
0
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
3 août 2010 à 22:38
bonjour karirovax,merci pour ce logiciel precieux prochaine question est til possible de créer une page que kand clique desus cest un telechargement qui souvre comme ton deuxieme lien que tu ma donner et si oui comment?
0
BeFaX Messages postés 14245 Date d'inscription mercredi 24 décembre 2008 Statut Contributeur Dernière intervention 6 août 2013 3 812
4 août 2010 à 01:52
@echo off
mode con cols=75 & mode con lines=10
echo.
echo   ________              __   .__.__  .__   
echo  /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo  \______  ^(____  /__^|  ^|__^|_ \__^|____/____/
echo         \/     \/           \/             
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo.
echo     ________              __   .__.__  .__   
echo    /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo   /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo   \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo    \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo           \/     \/           \/             
echo.
echo.
ping 127.0.0.1 -n 1 >nul
cls
echo.
echo       ________              __   .__.__  .__   
echo      /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo     /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo     \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo      \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo             \/     \/           \/             
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo.
echo         ________              __   .__.__  .__   
echo        /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo       /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo       \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo        \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo               \/     \/           \/             
echo.
echo.
ping 127.0.0.1 -n 1 >nul
cls
echo.
echo           ________              __   .__.__  .__   
echo          /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo         /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo         \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo          \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo                 \/     \/           \/             
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo.
echo             ________              __   .__.__  .__   
echo            /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo           /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo           \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo            \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo                   \/     \/           \/             
echo.  
echo.
ping 127.0.0.1 -n 1 >nul
cls
echo.
echo               ________              __   .__.__  .__   
echo              /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo             /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo             \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo              \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo                     \/     \/           \/             
echo.
echo.
ping 127.0.0.1 -n 2 >nul
cls
echo.
echo                 ________              __   .__.__  .__   
echo                /  _____/_____ _______^|  ^| _^|__^|  ^| ^|  ^|  
echo               /   \  ___\__  \\_  __ \  ^|/ /  ^|  ^| ^|  ^|  
echo               \    \_\  \/ __ \^|  ^| \/    ^<^|  ^|  ^|_^|  ^|__
echo                \______  (____  /__^|  ^|__^|_ \__^|____/____/
echo                       \/     \/           \/             
echo.
echo                                Pr'sente ...
ping 127.0.0.1 -n 3 >nul
pause
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
4 août 2010 à 04:10
un grand merci sa va mettre utile et comme programme inutile ta koi? :D
0
karirovax Messages postés 3221 Date d'inscription dimanche 17 janvier 2010 Statut Membre Dernière intervention 22 juin 2016 203
4 août 2010 à 20:07
Re,

pour le téléchargement , cela pour la langage HTML ( PHP, JAVASCRIPT, VBSCRIPT ... etc )

pour le batch il ya qq procedure comme :

start firefox http://www.f2ko.de/downloads/Bat_To_Exe_Converter.zip

ceci est un exemple pour qqn qui utilise firefox , s'il ya d'autre tu peut ouvrir ton registre ( regedit ) et fait rechercher pour le moteur de votre cas ( firefox , iexplorer ...etc )

bon chance
0
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
4 août 2010 à 21:39
non cenest pas vraiment sa que je cherche je recapepete XD en fait ma question est :est til posible de créer une page html que kand on clique sur un liens sa lance un telechargement qui telecharge le fichier voulu example
sur f2ko(ton site de telechargement) a un lien et quand on clique dessu sa ouvre une fentre e xecuter enregistrer ou anuler et on peut telecharger batch to exe converter je cherche a faire la meme chose mais en remplacant batch to exe converter parr un de mes fichier batch
0
karirovax Messages postés 3221 Date d'inscription dimanche 17 janvier 2010 Statut Membre Dernière intervention 22 juin 2016 203
4 août 2010 à 21:47
Re,

oui , oui ... comme je t'ai dit en haut c une langage HTML et pas batch :

il ya une methode simple pour créer la meme page :

click droite sur le site et choisissez Afficher la source puis faire un copier/coller dans un editeur de text comme Bloc-notes et fait enregistrer sous ... ( par exemple test.html au lieu de test.txt ) et voilà vous avez une page html ( modifier la ligne qui contient le lien http://www.f2ko.de/downloads/Bat_To_Exe_Converter.zip par votre lien ) .... c tous .. c simple ;)
0
garkill Messages postés 90 Date d'inscription lundi 5 octobre 2009 Statut Membre Dernière intervention 21 février 2015 2
5 août 2010 à 04:28
patr example que je que quand on qlique sa telecharge le fichier bonjour.exe que doije marquer
merci pour ton aide precieuse
0