dos
Posted by nick on Thursday, November 26th, 2009 | Filed under
Setting Window Title
Define a command sequence which sets the title of the window before changing directory:
@%*
@set pwd=%CD%
@title %CD%
Call the file something sensible, such as set-terminal-title.cmd, verbosity is unimportant as you’re not going to end up typing it yourself.
And a title?
Define the environment variable %TITLE% and set that when setting the title:
@%*
@set pwd=%CD%
@title %TITLE% – %CD%
Make sure the script is saved somewhere in your path.
Now in macros.mac define the following:
cd..=set-terminal-title cd ..
cd=set-terminal-title cd /D $*
popd=set-terminal-title popd $*
pushd=set-terminal-title pushd $*
a:=set-terminal-title a:
b:=set-terminal-title b:
c:=set-terminal-title c:
d:=set-terminal-title d:
e:=set-terminal-title e:
f:=set-terminal-title f:
g:=set-terminal-title g:
h:=set-terminal-title h:
i:=set-terminal-title i:
j:=set-terminal-title j:
k:=set-terminal-title k:
l:=set-terminal-title l:
m:=set-terminal-title m:
n:=set-terminal-title n:
o:=set-terminal-title o:
p:=set-terminal-title p:
q:=set-terminal-title q:
r:=set-terminal-title r:
s:=set-terminal-title s:
t:=set-terminal-title t:
u:=set-terminal-title u:
v:=set-terminal-title v:
w:=set-terminal-title w:
x:=set-terminal-title x:
y:=set-terminal-title y:
z:=set-terminal-title z:
Producing TAP from DOS Scripts
Producing TAP from DOS Scripts
Following a meme
Obviously it needs some proper commands installed…
meme.bat
doskey /history | awk “{print $1}” | sort | uniq -c | sort -rn -k1
Leave a response, or trackback from your own site.
![32sixteen [32sixteen]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/32-sixteen.gif)
![RSS Feed - Entries] [RSS Feed - Entries]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/feed.png)

![Get Firefox! [Get Firefox!]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/get_firefox_80x15.png)
![Valid XHTML 1.0 Transitional [Valid XHTML 1.0 Transitional]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/valid-xhtml-1.0.png)
![Valid CSS [Valid CSS]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/valid-css.gif)
![Valid RSS [Valid RSS]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/valid-rss.png)

![LastFM [LastFM]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/lastfm.png)
![The Vale of Lune Harriers and The Tnree Counties Bloodhounds [Vale of Lune Harriers]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/vlh-harriers.gif)
![Singletrack magazine [Singletrack]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/singletrack.jpg)
![The Outcast Fanzine [The Outcast]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/the-outcast.gif)
![Hosted By Hexten [Hexteb Hosted]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/hexten-hosted.gif)
![Powered by PHP [PHP Powered]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/php-powered.png)
![Spam Karma 2 Protected [Spam Karma 2]](http://www.32sixteen.com/wp-content/themes/three_column_0.2.3/buttons/sk2-protected.png)