Bonjour tout le monde,
Tout est dans le titre, je voudrais extraire le premier caractère d'une variable.
Extraction du premier caractère d'une variable
Modérateur : WIN32-[GG]
Re: Extraction du premier caractère d'une variable
Salut,
Set mavariable=bob
set mavariable=%mavariable:~0,1%
echo %mavariable% <-----------------------renvois b
A+
Set mavariable=bob
set mavariable=%mavariable:~0,1%
echo %mavariable% <-----------------------renvois b
A+
Why the watch didn't work
Jack is a Vietnamese. One day, he sold a piece of replica watchesto an American, John.After John received the watch, he found it didn't work and he immediately wrote an Email to Jack, which read "Hi, there. I have received the rolex replica. You said it is perfect in quality, but it didn't work here. Why?"Jack replied soon "Dear John, I am so sorry to hear that. Also please be patient , because of time difference,It's at night in Vietnam now, the watch is sleeping ."