fpefpe wrote:
| Greetings --
|
| I been using autoexec.bat to set env vars ... this worked in win2k
| and xp -- it does not seem to work in vista ... has anyone used
| autoexcec.bat in this way? Thanks
My vistas are not the same as Gates', only XP spoken here. Doing all
your initialization in TCSTART.BTM will always work. Just make sure you
bypass the initialization when in a secondary shell, i.e., one on the right
side of a pipe. I start mine with "if %_pipe eq 1 quit" to achieve this.
I've not used AUTOEXEC.BAT even in the 4DOS days (back then because many
junkware vendors modified it unconsciounably). Its use in console sessions
that are not started directly by the OS (through a desktop shortcut, the RUN
dialog, a Windows association of .BTM with TCC, etc.) is arcane. OTOH
TCSTART is guaranteed to be used, unless the startup command contains option
/IS (primary session only, not in pipes), or the .INI file contains a
directive StartupFile=No.
--
HTH, Steve