DEL files from cmd line

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

DEL files from cmd line

Post by *KozakMak »

from win cmd: del NO.BAR WCMICONS.DLL *unin* *.TXT - all ok
from totalcmd cmd line: del NO.BAR WCMICONS.DLL *unin* *.TXT - command not found

What's the matter?
OS: Win10 | TC: latest x64
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: DEL files from cmd line

Post by *nsp »

The command bar is not directly plugged to the shell interpreter it is more to launch pgm or TC command or allias.

For this kind of cmd internal command, you can prefix with cmd /c.

You can make it even shorter with a one sign allias like $ and a usr command
[em_cmdexe]
programm=cmd.exe /c
param=%A
User avatar
white
Power Member
Power Member
Posts: 5753
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: DEL files from cmd line

Post by *white »

KozakMak wrote: 2024-10-10, 11:22 UTC from win cmd: del NO.BAR WCMICONS.DLL *unin* *.TXT - all ok
from totalcmd cmd line: del NO.BAR WCMICONS.DLL *unin* *.TXT - command not found

What's the matter?
You are comparing the wrong things. You should compare:
Windows Run: del NO.BAR WCMICONS.DLL *unin* *.TXT - command not found
Total Commander Command line: del NO.BAR WCMICONS.DLL *unin* *.TXT - command not found
KozakMak
Senior Member
Senior Member
Posts: 480
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: DEL files from cmd line

Post by *KozakMak »

2nsp
OK, thanks
OS: Win10 | TC: latest x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: DEL files from cmd line

Post by *ghisler(Author) »

del is not an executable, it's a command within cmd.exe. You can either use Shift+Enter to execute the command via cmd.exe, or write
cmd /c del NO.BAR WCMICONS.DLL *unin* *.TXT
Author of Total Commander
https://www.ghisler.com
Post Reply