variable et manipulation variable MSDOS

variable et manipulation variable MSDOS - Win 10 - Windows & Software

Marsh Posté le 25-09-2016 à 20:05:46    

bonjour à tous
 
j'appelle un fichier avec la commande call cinq.bat %%a
 
%%a vaut "bonjour.rar"
 
dans mon cinq.bat
%1 correspond à "bonjour.rar"
%~1 correspond à bonjour.rar
 
je pensais que %~1:0,-4% correspondait à bonjour
mais il ne se passe rien
 
comment récuperer cette chaine bonjour ?
 
merci

Reply

Marsh Posté le 25-09-2016 à 20:05:46   

Reply

Sujets relatifs:

Leave a Replay

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