Exécuter un batch avec des arguments

Exécuter un batch avec des arguments - VB/VBA/VBS - Programmation

Marsh Posté le 05-10-2004 à 17:00:51    

Je souhaiterai passer à un batch (par la commande Shell) des arguments récupérés via une TextBox.
Exple : Shell("c:\.....\batch.bat Value",1) et où Value et la variable récupérée dans la TextBox.
Comment je dois m'y prendre  :??:  
Merci du coup de main  :jap:

Reply

Marsh Posté le 05-10-2004 à 17:00:51   

Reply

Marsh Posté le 05-10-2004 à 17:41:43    

Shell("C:\batch.bat " + txtBox1.Value)
 
?


---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
Reply

Marsh Posté le 05-10-2004 à 18:58:47    

ça marche pas chef ! J'ai l'erreur :  
run time error 53
File not found
Voici la syntaxe :
ReturnVal = Shell("c:\...\Batch.bat" + txtValeur.Value)

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed