command line and DOSkey

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 480
Joined: 2021-05-24, 12:39 UTC
Location: UA

command line and DOSkey

Post by *KozakMak »

So I have configured doskey macro file
e.g. DOSKEY pg=ping google.com -t

How can I use this alias in TotalCmd command line ?
OS: Win10 | TC: latest x64
User avatar
Dalai
Power Member
Power Member
Posts: 9948
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: command line and DOSkey

Post by *Dalai »

You can't because TC can't know what aliases are defined in other programs (CMD in this case).

May use a pg.cmd script placed in %SystemRoot% directory.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: command line and DOSkey

Post by *Hacker »

Or you can define custom aliases in TC, under Configuration - Options - Misc., where you would have to create a new user command which would run cmd /k ping www.google.com -t.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply