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,896 of 68,980    |
|    R.Wieser to All    |
|    Re: how do I set the window title to the    |
|    04 Jul 22 13:46:07    |
      XPost: microsoft.public.windowsxp.general       From: address@not.available              Herbert,              > It does work on the command line but not in a batch file. If you want       > to use it in a batch file, you have to add a few %:              I know. I just didn't get it to work.              > set dd=cd       > doskey cd=cd $* ^&call title %%%%dd%%%%              And as is appears now I was just too focussed on keeping those "^" in there.       You /said/ they where part of the solution. :-)              > You can use any name which is not used by other batch code instead of       > "dd".              I've got another solution - not using an environment variable :              You could use my origional solution (from before you posted, with the "for       %%A" in it) and remove the "~nx" part. The below also works :              (from within a batchfile)              doskey cd=echo off^&cd $*$Ttitle %%cd%%^&echo on              The trick is that the "$T" in there takes the place of the "call", but also       delays the expansion of the %CD% variable. The "echo off" and "echo on"       parts are needed because "$T" displays another prompt.              Thanks for your responses. I had some fun trying the different       possibilities out.              Regards,       Rudy Wieser              P.s.       I still like my solution which only displays the last folders name best       though. :-)              --- 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