Précédent   Forum des professionnels en informatique > Systèmes > Windows > Windows XP
Windows XP Forum d'entraide Windows XP. Avant de poster : La F.A.Q Windows XP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 29/07/2011, 14h52   #1
Membre habitué
 
Inscription : mars 2002
Messages : 560
Détails du profil
Informations forums :
Inscription : mars 2002
Messages : 560
Points : 107
Points : 107
Par défaut Problème lors de l'appel d'un script

Bonjour,

J'ai un script bat qui en appelle un autre.
L'autre script se lance bien mais il ne rend pas la main à l'autre et ne passe pas à l'étiquette ":Cryptage".

Vous voyez pourquoi ?

Premier script :

Code :
1
2
3
4
5
6
7
...
:Convertisseur
call C:\TEMP\CONV_WEB_20101109\ConvertisseurFFF.bat
if not ErrorLevel 0 goto :Error
if ErrorLevel 0 goto :Cryptage
...
Le script ConvertisseurFFF.bat est donc bien appelé mais ce dernier ne rend pas la main à l'autre.

ConvertisseurFFF.bat
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@"C:\TEMP\CONV_WEB_20101109\ConvertisseurFFF.exe"
echo %ERRORLEVEL%
if %ERRORLEVEL% LSS 0 goto :physical_error
goto :switchcase

:physical_error
echo val%ERRORLEVEL%
REM IT_Administrator must analyse the physical problem
echo A physical problem occurs, check
goto end_conv

:switchcase
IF %ERRORLEVEL%==0 goto val%ERRORLEVEL%
goto :file_error

:val0
echo %ERRORLEVEL% > ConvertisseurFFF.log
echo conversion ok
goto end_conv

:file_error
echo %ERRORLEVEL% > ConvertisseurFFF.log
echo IT_Administrator must analyse the containt of the file_in
goto end_conv

:end_conv
echo end of conversion for FFF
exit 0;
Merci pour toute information complémentaire.
david71 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/07/2011, 17h04   #2
Membre habitué
 
Inscription : mars 2002
Messages : 560
Détails du profil
Informations forums :
Inscription : mars 2002
Messages : 560
Points : 107
Points : 107
Apparemment en mettant les deux scripts au même endroit cela a l'air de fonctionner, donc en indiquant :

"call ConvertisseurFFF.bat"
au lieu de
"call C:\TEMP\CONV_WEB_20101109\ConvertisseurFFF.bat"
david71 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 14h14.


 
 
 
 
Partenaires

Hébergement Web