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
11,546
104
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
12,406
152
thorntonpg@gmail.com 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, thorntonpg@gmail.com 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 "
 
Similar threads
Thread starter Title Forum Replies Date
D How to? Skip removing directory (RMDIR) without error message Support 2
R How to Suppress "Removing Directory" Messages Support 3
old coot Spurious errors (triggered by "for" construct?) when adding/removing "echo" lines Support 2
vefatica Stop TPIPE /EOL removing bad EOLs (and TPIPE changine EOLs)? Support 2
C Fixed V25 crashes when adding and then removing in the tabbed toolbar Support 3
C v23 Everything still referenced after removing v23 and installing v24 Support 7
vefatica Fixed Crash removing toolbar tab Support 1
D Fixed Removing the mail password causes GPF Support 2
C Does removing a registered TCMD lower the number registrations used? Support 5
D Removing text with TPIPE Support 2
vefatica PSHELL changes directory Support 3
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
nickles Move takecommand.18.0.key location to installation directory Support 4
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
vefatica TCMD's current directory? Support 4
J How to set working directory Support 10
nickles How to? Follow a JUNCTION type directory link Support 9
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I tab completion with directory commands Support 7
vefatica Start-up directory for new tabs? Support 7
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
vefatica FFIND /S, find directory with specified name? Support 7
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
H WAD Wild Card in Directory @shfolder[25] acting differently Support 3

Similar threads