removing directory with space at the end

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>
 
May 20, 2008
9,187
60
Syracuse, NY, USA
Perhaps ...

Win32SFNSearch=Yes


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


>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>
>
>
>
>
 

rconn

Administrator
Staff member
May 14, 2008
10,920
97
[email protected] wrote:

> 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.
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
 

dim

Dimitry Andric
May 31, 2008
205
1
Netherlands
On 2008-07-05 04:33, [email protected] wrote:

> Another program I had created a folder with a space at the end. I
> tried using explorer to remove the directory without success.
...

> 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
4NT/TCC have never been able to handle this case. Try:

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