DEL disregards switch when using regular expressions

Jun 19, 2008
9
0
#1
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
10,554
97
#2
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
#3
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.