Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

alias usage

0 views
Skip to first unread message

johnel...@googlemail.com

unread,
May 15, 2009, 1:28:06 PM5/15/09
to
I have a lot of explicit references to programs in my bat files eg

c:\pas\jim.exe aa bbb

I'd like to be able to change the location of the programs eg to g:
\pas. Of course I can do this by editing the .bat files,. but is it
possible to do this with alias? ie to alias c:\pas\jim.exe to g:\pas
\jim.exe - I can't get it to work- something to do with the use of \
or :

eg alias c:\pas\jim.exe=`g:\pas\jim.exe`

I've triede with various types of quotes- no luck!

Anyone know whether thgis is possible?

Regards John

ras...@highfiber.com

unread,
May 16, 2009, 11:46:50 AM5/16/09
to

It works fine for me, in 4DOS and the current TCC. The name of the
alias has to exactly match the usage in your batch files -- quotes or
no quotes, extension or no extension.

Of course, this will fail if your batch files have an UNALIAS * near
the start, a fairly common practice. If you just need to replace one
drive letter with another, or a drive letter with a specific
subdirectory, then SUBST might be the better way to go....

--
Charles Dye

0 new messages