Problems with aliases

mil

Aug 17, 2012
1
0
PA
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
[D:\]alias
TCC: No aliases defined
[D:\]alias /r C:\TCmd\ALIASES
[D:\]alias
TCC: Unknown command "D:"

Here is the file of aliases
7z="C:\program files\7zip\7z.exe"
adb=C:\progra~1\adb\adb.exe
sdel=select del (%1)
Copy=*COPY /u
del=*del /r
Desk=D:\Download\Programs\DesktopOK_64.exe
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
unzip=C:\bin\unzip.exe
wipe=*del /w
zip=C:\bin\zip.exe

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

alias copytcs='copy D:/?.tc W: && copy D:/today.zip W: && date'
 
May 20, 2008
11,018
88
Syracuse, NY, USA
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.

If

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

is among your aliases, it doesn't look right.