Renommer "un" fichier avec un .bat - Shell/Batch - Programmation
Marsh Posté le 05-03-2004 à 22:41:48
Mais comment je peut faire pour que quand je clik sur le .bat
Quans c test.php sa renomme en test.php.bak
et que si c test.php.bak sa renomme en test.php ?
Marsh Posté le 06-03-2004 à 13:49:29
Déja, apprends a écire.
if exist "test.php" (ren "test.php" "test.php.bak".) else ren "test.php.bak" "test.php".
Marsh Posté le 06-03-2004 à 17:53:16
ça c'est du batch utile...
bon je sors
Marsh Posté le 05-03-2004 à 22:33:21
Wala jvoudrais avec un bat pouvoir renommer par exemple un fichier qui sapelle "test.php" en "test.php.bak".
Il est dans le C: merci