récrire la deuxième ligne 2 d'un fichier
Bonsoir à tous,
Je débute en vbs.
J'ai le fichier texte suivant (instmod.bat)
Code:
1 2 3 4 5 6 7 8
| echo ...... Installation de Firefox ......
start /wait .\firefox\firefox.exe -ms -ira
echo ...... Installation de Flash Player pour Internet Explorer ......
start /wait .\flashplayer\fplayer32ie.exe -install
echo ...... Installation de Flash Player pour Firefox ......
start /wait .\flashplayer\fplayer32ff.exe -install
echo ...... Installation d'Open Office ......
start /wait .\openoffice\setup.exe /qn |
Ceci est un exemple et est évolutif.
Je voudrais enlever start /wait à la deuxième mais seulement à cette deuxième ligne.
Je pense que je dois mettre cela au début.
Set modinstmod2 = z.OpenTextFile("./instmod.bat", ForReading)
Set modinstmod3 = z.createTextFile("./instmod2.bat", True, ForWriting)
après je sèche
Cela reviendrait à ne modifier que la ligne n°2 de instmod.bat ainsi j'obtinadrai le résultat suivant et serait donc instmod2.bat
Code:
1 2 3 4 5 6 7 8
| echo ...... Installation de Firefox ......
.\firefox\firefox.exe -ms -ira
echo ...... Installation de Flash Player pour Internet Explorer ......
start /wait .\flashplayer\fplayer32ie.exe -install
echo ...... Installation de Flash Player pour Firefox ......
start /wait .\flashplayer\fplayer32ff.exe -install
echo ...... Installation d'Open Office ......
start /wait .\openoffice\setup.exe /qn |
Quelqu'un aurait il un solution s'il vous plait.
D'avance merci et bonne soirée.