Bonjour,
J'ai un soucis avec un bout de code. quand je cherche à faire appel à une routine l'interpréteur me dit :

'pouetpouet' n'est pas reconnu en tant que commande interne
ou externe, un programme ex‚cutable ou un fichier de commandes.

J'ai eu beau chercher je ne comprend pas, est-ce que quelqu'un pourrait m'aiguiller svp?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
call pouetpouet 50000 2>err.txt
echo %tlgiga% %tlmega% %tlkilo%
pause

:pouetpouet
set /a num=%1
set /a tlkilo=0 & set /a tlmega=0 & set /a tlgiga=0
if %num% lss 0 set /a num=-%num%
if %num%/1048576 GEQ 1 (
set /a tlgiga=%num%/1048576
set /a tlmega=%num% %% 1048576
)
if %tlmega%/1024 GEQ 1 (
set /a tlmega=%tlmega%/1024
set /a tlkilo=%tlmega% %% 1024
)