Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

removing directory with space at the end

Jul
325
4
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>
 
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>
>
>
>
>
 
[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
 
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 "
 
Back
Top
[FOX] Ultimate Translator
Translate