We help IT Professionals succeed at work.

! in DOS command

zhshqzyc
zhshqzyc asked
on
Medium Priority
410 Views
Last Modified: 2012-06-27
Hi, what is the meaning of "!" here?
set x =  100000
set x = !x:0,4!

Open in new window

Is there a link?

Thanks.
Comment
Watch Question

Technology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Then what is
x:0,4

Open in new window

Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Okay. It's a dos substring manipulation. Why I can't found it in microsoft web site?
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
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.

Author

Commented:
Okay. Thank you very much. Points are given. If you find it in offical miscrosoft web, just please post it. :)

Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
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
Steve KnightIT Consultancy
CERTIFIED EXPERT

Commented:
well you will find this sort of stuff it in the help of

set /?
For /?
Setlocal /?
Etc.

Which are actually quite good.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.