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

Problem with extended wildcards

Discussion in 'Support' started by Steve Fabian, Nov 28, 2011.

  1. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    WinXP home SP3 / TCC 13.01.32 (no TCMD)
    Command:

    *dir/b/og/nej/p/s f:\**\V0000
    (many hidden directories named V0000 without subdirectories)

    Is the bug or user error that TCC dies?

    GPF:
    TCC 13.01.32
    Module=F:\JPSOFT\IZ\TakeCmd.dll
    Address=100C447A
    Exception=C0000005
    EAX=00000000 EBX=00000072 ECX=00000002 EDX=00000002
    ESI=0130DB2A EDI=07038000 EBP=012FD4D0 ESP=012FD4C8
    CS=0000001B DS=00000023 ES=00000023 SS=00000023
    Flags=00010206

    Stack:
    1 : TakeCmd.dll 00000001:000c347a

    --
    Steve
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,809
    Likes Received:
    82
    User error.

    The docs *do* tell you not to use /S with directory wildcards!

    What you're doing in that command is asking DIR for all of the directories
    named V0000 anywhere on F:. And then repeat for every subdirectory on F: --
    which means if you have, say 100 subdirectories named V0000 and a total of
    20,000 subdirectories on F:, you'd get back a directory listing with
    2,000,000 entries (your 100 matching files * the 20,000 times you asked for
    it to be repeated. )

    Except you can't because you don't have enough memory, and Windows blew up.
     

Share This Page