Computing.Net > Forums > Windows 3.1 > Deleting files with underscores

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Deleting files with underscores

Reply to Message Icon

Name: Paul
Date: October 12, 2002 at 19:31:37 Pacific
OS: win 3.11
CPU/Ram: 486 25mhz
Comment:

Hi everyone.

I took some files from the internet (using my win98 computer) and put them on my old laptop which is running win 3.11.

Some of the files that I copied into win 3.11 had underscores in the filename and/or folder name.

When I try to delete these files in File Manager, an error message comes up saying "File Manager cannot delete C:\image_br : File Manager cannot find the specified path."

I've already tried to delete the file and/or folder (have both) using the dosshell program.

Any ideas???

Thanks in advance



Sponsored Link
Ads by Google

Response Number 1
Name: jboy
Date: October 12, 2002 at 19:43:49 Pacific
Reply:

Have you tried using plain old DOS?

del image_br.*

or

del image*.*

The underscore is a legal DOS character (spaces aren't), so the problem must lie elsewhere. Have you checked your HDD with scandisk or similar utility? - possibly the files have allocation errors.


0

Response Number 2
Name: Paul
Date: October 12, 2002 at 20:59:55 Pacific
Reply:

My mistake. The files from the win98 computer had spaces instead of underscores.

I have tried to delete from the old plain dos command line.

After searching this site, I think I found the answer (I hope NOT).
(http://computing.net/windows31/wwwboard/forum/1033.html)

It may be that the LFN's are from a 32 bit environment TO a 16 bit environment. In order to delete these, I may have to reformat the HD.


But even the files in the folder aren't deletable. Because of the folder name, file manager can't find them.

If I knew what I was doing, I wouldn't get in this kind of mess.

By the way, scan disk does not find anything wrong.

Paul


0

Response Number 3
Name: jboy
Date: October 12, 2002 at 21:19:32 Pacific
Reply:

Well, I would take that advice with at least one grain of salt - sure reformat would work, but somewhat of a drastic solution.

The problem is due to the illegal DOS character in the file/folder name - not, I don't think, due to any 32/16 bit LFN crossover.
I've used 3rd party filemanagers to rectify similar situations (XTree, PC Tools etc).
Have you tried deltree using wildcards?

For example, if the folder name was 'image br' then try:

deltree /y c:\imag*.*

- assuming of course that there are no similarly named folders that you want to keep. Not sure if that would work, but worth a try.
Possibly Norton Disk Doctor for DOS (1999 or later), if you can get hold of it, would correct the problem.


0

Response Number 4
Name: Dan Penny
Date: October 13, 2002 at 02:18:13 Pacific
Reply:

In the dos environment, folder (directory) and file names follow the eight-three architecture. (12345678.123). as an example, say you have a file/folder named My Special files(.ext if a file name) which you want to delete. When you type out the delete command, drop the space and enter the first six characters, then add a tilde and the number 1. ie;

del myspec~1(.ext if a file).

If it's a directory, use the deltree command to delete the directory ~and all its contents~.

deltree myspec~1


0

Response Number 5
Name: Old Jake
Date: October 13, 2002 at 02:52:29 Pacific
Reply:

You might get on easier with a file manager like DOS Controller.


0

Related Posts

See More



Response Number 6
Name: Paul
Date: October 13, 2002 at 07:41:49 Pacific
Reply:

Thanks all.

The deltree command worked.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Sound Blaster drivers for... wina20.386



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 3.1 Forum Home


Sponsored links

Ads by Google


Results for: Deleting files with underscores

long filenames,deleted files www.computing.net/answers/windows-31/long-filenamesdeleted-files/7596.html

delete file message www.computing.net/answers/windows-31/delete-file-message/4397.html

How to Delete files in DOS www.computing.net/answers/windows-31/how-to-delete-files-in-dos-/8968.html