Bonjour,
Je souhaite utiliser des commandes dos sous vbs...
Qu'est ce qui m'échappe ? Ce code ne marche pas :-(
A+Code:
1
2 Set oshell = WScript.CreateObject("WScript.Shell") oshell.Run("rename c:\test.txt testo.txt")
Damsmut
Version imprimable
Bonjour,
Je souhaite utiliser des commandes dos sous vbs...
Qu'est ce qui m'échappe ? Ce code ne marche pas :-(
A+Code:
1
2 Set oshell = WScript.CreateObject("WScript.Shell") oshell.Run("rename c:\test.txt testo.txt")
Damsmut
essai
mais mieux voir :Code:
1
2
3 Set oshell = WScript.CreateObject("WScript.Shell") oshell.Run("cmd /c rename c:\test.txt testo.txt")
Comment déplacer un fichier ?