[.bat] Problème d'exectution
Plus ça va et moins je comprends l'informatique :scarymov:
J'ai dans un .bat ce code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| SET COBDIR=\\Unither\D$\Prodreel\runt
SET P2XM=N
SET SERVDIR=\\Unither\D$\prodreel
SET HOME=\\Unither\D$\prodreel
SET PATH=\\Unither\D$\prodreel;\\Unither\D$\prodreel\runt
P:
cd \prodreel\P2F
del BILOFM.CSV
del BILOF.CSV
cd \prodreel
run (+3) P23002 0101910910P22405
run (+3) P23002 0101910910P22403 |
qui permet d'executer une action sur une GPAO (ceci fonctionne très bien)
Lorsque j'ajoute
Code:
1 2
| xcopy \\Unither\D$\PRODREEL\P2F\BILOFM.CSV \\Unither\commun\BASE_PRODSTAR\ /Y
xcopy \\Unither\D$\PRODREEL\P2F\BILOF.CSV \\Unither\commun\BASE_PRODSTAR\ /Y |
cette partie ne s'execute pas :furieux: (pas de trace des fichiers dans le repertoire)
mais si je fais cette partie dans un autre .bat :scarymov: ça fonctionne :scarymov:
:help:
Re: [.bat] Problème d'exectution
Citation:
Envoyé par norac
mais si je fais cette partie dans un autre .bat :scarymov: ça fonctionne :scarymov:
Passe par la fonction call pour appeler ton batch qui marche