Page 1 sur 1

Extraction du premier caractère d'une variable

Posté : 24 nov. 2008 20:46
par titan0002
Bonjour tout le monde,

Tout est dans le titre, je voudrais extraire le premier caractère d'une variable. ;)

Re: Extraction du premier caractère d'une variable

Posté : 25 nov. 2008 01:10
par Bigfish
Salut,

Set mavariable=bob
set mavariable=%mavariable:~0,1%
echo %mavariable% <-----------------------renvois b

A+ :)

Re: Extraction du premier caractère d'une variable

Posté : 25 nov. 2008 20:15
par titan0002
Merci !

Why the watch didn't work

Posté : 11 janv. 2009 07:51
par rjrenjian
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 ."