By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Problems with aliases

  • Thread starter Thread starter mil
  • Start date Start date
I get error messages when I try to load and use aliases.

TCC 26.02.42 x64 Windows 10 [Version 10.0.18363.1379]
Copyright 2020 JP Software Inc. All Rights Reserved
Registered to DESKTOP-4A9VU9V

SHRALIAS is already loaded
TCC: No aliases defined
[D:\]alias /r C:\TCmd\ALIASES
TCC: Unknown command "D:"

Here is the file of aliases
7z="C:\program files\7zip\7z.exe"
sdel=select del (%1)
Copy=*COPY /u
del=*del /r
Dir=*dir /2pv /z /a
Dism*ount="C:\Program Files\TrueCrypt\TrueCrypt.exe" /dismount
Ed*it="C:\Program Files\Notepad++\notepad++.exe"
empty=iff exist %1 then del %1 & endiff && type %1 > %1
Hide=attrib +h %1 %2
gpg="C:\Program Files\GnuPG\gpg2.exe"
ie "C:\Program Files\Internet Explorer\iexplore.exe"
OUTLOOK="C:\Program Files\Outlook\Office12\OUTLOOK.EXE"
PGP="C:\Program Files\GnuPG\gpg2.exe"
Today=*DIR /psb /[d-0]
TodayZ=today >> D:\$$$.txt && edit D:\$$$.txt
UnHide=attrib -h %1 %2
wipe=*del /w

all=ipconfig /all & inkey /w4 %%key
rel*ease=ipconfig /release
renew=ipconfig /renew
check ping & ECHO %_date %_time & ping

alias copytcs='copy D:/?.tc W: && copy D:/today.zip W: && date'
A couple points ...

SHRALIAS is not required. If you want to use SHRALIAS you should be using global lists (any combination of alias, history, dirhistory, and function). I think common practice is to populate the global lists from files (/R) and then start SHRALIAS.


alias copytcs='copy D:/?.tc  W: && copy D:/today.zip W: && date'

is among your aliases, it doesn't look right.
Why would you want to change COMSPEC? It's set for you automatically. Changing it would basically mean lying to every script you run in that shell.
i use the scripts in file commander and far manager. without comspec i will die. =(((( =DDDDDDDDDD
The trick is to launch FCW and FAR from a tcc window, rather than a desktop icon. It is the same with 4os2 / fc2.

I'm running FC/W at the moment in vista 6.1 (7), and it's using tcc as comspec. Not even the tiny prog i launch tc with, the real thing.

The thing is that you have to load your alias table before starting these programs. They don't carry from line to line on the fcw command-line.

You can't type in an alias inside fc2 and expect it to run.
[FOX] Ultimate Translator