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

No Comments »

Leave a response, or trackback from your own site.

last 10 posts

[32sixteen]

site feeds

[RSS Feed - Entries] (entries)

[RSS Feed - Comments] (comments)

archives

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

things we ride

Actually we're lying about the Maverick since some low-life stole it.

photos

In the UK as we give away our civil liberties in the name of freedom it might be handy to be aware of Photographers Rights.

Don't let The Man stop you shooting.

My photos on flickr. Get your badge at bighugelabs.com/flickr

meta»data

[Get Firefox!]

You know it makes sense.

[Valid XHTML 1.0 Transitional]

[Valid CSS]

[Valid RSS]

search 32sixteen

 

search the web

Google

translate this page


pages

tape time

The things we listen to are occasionally logged on Last.fm

Now Playing

iPod updating courtesy of iScrobbler.

It doesn't update from the wheels of steel though :-)

Remember kids, vinyl can't carry Digital Rights Management.

[LastFM]

people are people

other places to go

in no particular order...

[Vale of Lune Harriers]

toilet material

For all that we like the up-to-the minute offerings of the web there's nothing like a proper badly photocopied A5 fanzine or a glossily printed proper magazine to keep you occupied on the throne. Here, in no particular order, is our material of choice.

[Singletrack]
Singletrack

[The Outcast]
The Outcast

race results

If anyone has a full set of NEMBA results (that's North of England for you colonial types) then please forward them.