Link to home
Start Free TrialLog in
Avatar of zhshqzyc
zhshqzyc

asked on

! in DOS command

Hi, what is the meaning of "!" here?
set x =  100000
set x = !x:0,4!

Open in new window

Is there a link?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zhshqzyc
zhshqzyc

ASKER

Then what is
x:0,4

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Okay. It's a dos substring manipulation. Why I can't found it in microsoft web site?
Probably because Microsoft is HUGE and has hundreds if not thousands of different programming teams and web hosting teams and other teams... coordinating where everything is a MONSTER task and things get lost and / or buried.  That's in part why Google is your friend.
Okay. Thank you very much. Points are given. If you find it in offical miscrosoft web, just please post it. :)

Not a Microsoft write up (I couldn't find the substring part of the SET there easily), but a great reference:

http://www.robvanderwoude.com/ntset.php

~bp
well you will find this sort of stuff it in the help of

set /?
For /?
Setlocal /?
Etc.

Which are actually quite good.