Welcome!

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

Aug
1
0
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'
 
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.
 
microsoft do not allows me to set the comspec variable and all heeeells break loose here because this.

please, help. i have tcc le v14.
 

Attachments

  • littlescripts.zip
    4.9 KB · Views: 228
  • 4start.cmd
    1.5 KB · Views: 236
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.
 
Back
Top