1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DEL disregards switch when using regular expressions

Discussion in 'Support' started by TheXman, Mar 18, 2009.

  1. TheXman

    Joined:
    Jun 19, 2008
    Messages:
    9
    Likes Received:
    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
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    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
     
  3. TheXman

    Joined:
    Jun 19, 2008
    Messages:
    9
    Likes Received:
    0
    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.
     

Share This Page