DEL disregards switch when using regular expressions

Jun 19, 2008
9
0
Windows Vista SP1
TCMD 9.02.155

When entering the DEL command below, the "/k" switch is ignored. I tried putting the "/k" before and after the file descriptor. Is anyone else able to recreate this issue? Or am I entering something incorrectly?

Command: del /k "::^\d{5}"

The command says to delete any file, in the current directory, that starts with 5 numeric digits.
___
TheXman
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
TheXman wrote:

> Windows Vista SP1
> TCMD 9.02.155
>
> When entering the DEL command below, the "/k" switch is ignored. I tried putting the "/k" before and after the file descriptor. Is anyone else able to recreate this issue? Or am I entering something incorrectly?
>
> Command: del /k "::^\d{5}"
>
> The command says to delete any file, in the current directory, that starts with 5 numeric digits.

Not reproducible here. (Setting the "delete to recycle bin" option and
then giving the /K option to DEL results in the file not being added to
the recycle bin.)

Do you have any aliases for DEL?

Rex Conn
JP Software
 
Jun 19, 2008
9
0
TheXman wrote:



Not reproducible here. (Setting the "delete to recycle bin" option and
then giving the /K option to DEL results in the file not being added to
the recycle bin.)

Do you have any aliases for DEL?

Rex Conn
JP Software

Please disregard. For some reason, I got the /k and /n switches mixed up. After not using tcmd for a while, I thought /k was the "do nothing" switch (/n).

Thanks.
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly MKLINK and Streams and DEL Support 4
S CMDebug 22 issue with del command Support 1
I Puzzling Behavior of TDRV and DEL Support 2
vefatica File system update after DEL? Support 4
vefatica DEL /R on a SUBST'd drive? Support 1
C Del /W999 2gbFile.ext / latest build / Win7 x64 / MSE / Everything Support 5
nickles WAD del unable to delete files ending in "." Support 18
D del /s /q /f asks Are you sure (Y/N)? Support 7
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
C DEL, connected Web folder, report Support 1
R /p when used with DEL Support 1
M A possibly stupid question about the "del" command... Support 7
Peter Murschall DEL /Y prompts always ? Support 3
vefatica Files disappear in Explorer when DEL fails Support 6
S WAD DEL /E suppresses fatal ERROR messages Support 2
nickles WAD del behaves inconsistenly# Support 7
David McClelland Why the prompt to del c:\* Support 7
Steve Pitts Are you sure prompt from DEL command Support 5
Steve Pitts Problem with DEL /S+n Support 11
vefatica DEL /Q not fixed Support 7
vefatica DEL /Q? Support 10
A del /w [minor documentation fix] Support 0
S DEL /L question Support 3
krischik WAD DEL *.htm Support 7
Phileosophos What could be slowing a "del /sxz" command? Support 19
S DEL on FTP site : complaint about missing DESCRIPT.ION Support 1
vefatica del, attributes, et c. Support 0
S SELECT DEL (*D.DLL) - output curious Support 8
S DEL unhides directories Support 9
F WAD SWITCH statement with regexes or wildcards as CASE expressions Support 9
A I'd like a clarification on the/N switch Support 11
Emilio III pdir /f switch Support 1
nikbackm Switch Case and here-document redirection Support 2
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
A TCC /S switch observations Support 2
rps Documentation "Select" command switch order incorrect Support 4
fpefpe How to? start command /tab option/switch Support 6
Joe Caverly Sort-of Missing Switch for START in Help Support 7
T TCMD tab switch keys Support 20
Stefano Piccardi TCMD 9.02.152 locale switch keys Support 0
Stefano Piccardi DO ignores switch /D ? Support 1
nikbackm Alias expansion and switch character Support 2

Similar threads