Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,919 of 68,980    |
|    R.Wieser to All    |
|    Re: how do I set the window title to the    |
|    08 Jul 22 10:41:22    |
      From: address@not.available              Herbert,              I was reading back thru the thread and saw this :              > set dd=cd&doskey cd=cd $* ^&call title %^%dd^%%       >       > But if you insert a space before the & it doesn't work       > anymore:       >       > set dd=cd &doskey cd=cd $* ^&call title %^%dd^%%              Thats explainable : "set" takes *everything* from the "=" upto the end of       the line and puts it into the variable (when using an "&" that becomes "the       end of the line")              set foo=the quick brown fox       echo %foo%              now try this :       - - - - - - - - - - - -       set dd=cd&rem       echo [%dd%]       - - - - - - - - - - - -       (no space infront of the "&")              and than this       - - - - - - - - - - - -       set dd=cd &rem       echo [%dd%]       - - - - - - - - - - - -       (one-or-more spaces infront of the "&")              the "[" and "]" are just visual delimitors and have no special meaning.              You might notice that the second example displays a space infront of the       "]", while the first one doesn't.              you will get the same results when you leave the "&rem" parts off              Regards,       Rudy Wieser              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca