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

removing directory with space at the end

Discussion in 'Support' started by thorntonpg@gmail.com, Jul 4, 2008.

  1. thorntonpg@gmail.com

    Joined:
    Jul 4, 2008
    Messages:
    203
    Likes Received:
    0
    Another program I had created a folder with a space at the end. I tried using explorer to remove the directory without success. I thought if I use the short name I could remove in tcc. However no success. I went into cmd and did the same and it worked. Here is the screen output.

    Volume in drive G is old g drive Serial number is e4c8:6d9a

    Directory of G:\temp\temp\*

    5/07/2008 11:33 <DIR> .
    5/07/2008 11:33 <DIR> ..
    5/07/2008 11:33 <DIR> 5-07-2008
    5/07/2008 11:33 <DIR> 5-07-2008
    0 bytes in 0 files and 4 dirs

    24,909,770,752 bytes free

    Sat 5/07/08 11:40:20 Administrator [E6400]
    G:\temp\temp>dir /x

    Volume in drive G is old g drive Serial number is e4c8:6d9a
    Directory of G:\temp\temp\*

    5/07/2008 11:33 <DIR> .
    5/07/2008 11:33 <DIR> ..
    5/07/2008 11:33 <DIR> 5-07-2~1 5-07-2008
    5/07/2008 11:33 <DIR> 5-07-2~2 5-07-2008
    0 bytes in 0 files and 4 dirs
    24,909,770,752 bytes free

    Sat 5/07/08 11:40:24 Administrator [E6400]
    G:\temp\temp>rd 5-07-2~2
    TCC: (Sys) The system cannot find the file specified.
    "G:\temp\temp\5-07-2~2"

    Sat 5/07/08 11:40:41 Administrator [E6400]
    G:\temp\temp>cmd
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.

    Sat 05/07/2008 11:40:45.15 rd 5-07-2~2
    Sat 05/07/2008 11:41:02.40 exit

    Sat 5/07/08 11:41:07 Administrator [E6400]

    G:\temp\temp>

    Sat 5/07/08 11:41:07 Administrator [E6400]
    G:\temp\temp>
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,053
    Likes Received:
    30
    Perhaps ...

    Win32SFNSearch=Yes


    On Fri, 04 Jul 2008 21:33:51 -0500, you wrote:


     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,991
    Likes Received:
    84
    thorntonpg@gmail.com wrote:

    TCC doesn't search for SFNs by default (because of the potentially
    catastrophic results if you did something like "del *1.*"). You can
    turn on SFN searching by running OPTION, going to the Startup page and
    enabling "Search for SFNs".

    Rex Conn
    JP Software
     
  4. dim

    dim Dimitry Andric

    Joined:
    May 31, 2008
    Messages:
    203
    Likes Received:
    0
    On 2008-07-05 04:33, thorntonpg@gmail.com wrote:

    ...

    4NT/TCC have never been able to handle this case. Try:

    cmd.exe /c rmdir "\\?\G:\temp\temp\5-07-2008 "
     

Share This Page