Batch ProgramingCould someone possible tell me why this program does not set %user% as "first or second"? It simply makes %user% either bu1 or bu2, but wont resolve them. Thanks so much! 1. set bu1=first LH You need to first enable delayed expansion of variables. Then you need to use exclamation mark on the outer variable. See example below. SetLocal EnableDelayedExpansion Chieh Cheng
Did your message disappear? Read the Forums FAQ. Add Comment
TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here. Messages, files, and images copyright by respective owners. |
Products
|
Services
46 Users Online
![]() |
Copyright © 1996 - 2025. All Rights Reserved. |