Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Periods In Directory Names

Original Message
Name: Trapper
Date: October 22, 2005 at 07:11:16 Pacific
Subject: Periods In Directory Names
OS: MS-DOS 6.22
CPU/Ram: 500 MHZ AMD-K2 512 MB RA
Comment:
I run a script from a floopy boot of Dos 6.22 to clean out junk files, etc. from a NT4 hard drive that uses Fat 16 format. I have a specifc problem with directories with a period in them, such as FireFox cache directories. I cannot traverse them or eliminate the data within them. I do not want to eliminate the folders, just the files in them.

Here's an example of a wipe function that does not work. It chokes whenever it attempts to access or go through a directory with a period in the name.

del16 /g4 /f /z c:\winnt\profiles\cecil\applic~1\mozilla\firefox\profiles\t4h4mr~1.def\cache~1.tra\*.*

The "t4h4mr~1.def" long file name is t4h4mr7i8s.default
The "cache~1.tra" long file name is cache.trash


The t4h4mr7i8s.default directory is the base folder for the user's FireFox account and cannot be removed, however I cannot get through this directory in DOS to work with any subdirectories it has. Are there any tricks for folders with periods in them?

Yes, I realize I could use wipe programs inside NT to remove these junk files. That is not the issue. I have reason for doing it from a floppy boot.


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: October 22, 2005 at 10:52:28 Pacific
Subject: Periods In Directory Names
Reply: (edit)
It may not be, strictly speaking, the dot.

I tried it with xdel from DRDOS from way back when.

It would not del files in a dir named test.1234, but gladly did test.123, so I guess that the problem is with chars in excess of 3 in the extension.

If true, that's no help, because you're stuck with the directory structure FireFox creates.

So I guess you need a 3rd party util with a little more horsepower than del16.


If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 2
Name: roamer_1
Date: October 22, 2005 at 15:00:03 Pacific
Subject: Periods In Directory Names
Reply: (edit)

You might try a dos 7 bootdisk (DOS from Win9x) using DOSLFN long filename driver. I haven't run into problems deleting the FF cache using DOS to autodetect and delete it

- or alternatively, if it is a single box, redirect the cache to a differently named folder easier to get to... like C:\TEMP\FIREFOX.

I have IE and FF caching to C:\TEMP on my own boxes and it is deleted on each boot...


Report Offensive Follow Up For Removal

Response Number 3
Name: Trapper
Date: October 23, 2005 at 06:30:15 Pacific
Subject: Periods In Directory Names
Reply: (edit)
I see no option in FF's configuration settings to set up my temp dir. as it's cache directory. Is this a manual edit somewhere?

I will give the DOS 7 bootdisk and DOSLFN a try though.


Report Offensive Follow Up For Removal

Response Number 4
Name: roamer_1
Date: October 23, 2005 at 11:24:16 Pacific
Subject: Periods In Directory Names
Reply: (edit)
Change FF Cache:
It is a user level tweak. IOW, must be changed in each profile:

In the profile's directory (same place you find bookmarks.htm), look for user.js. If there isn't one, then create it with edit, notepad or any other ASCII text editor.

add these lines:

<------------
// Path to Cache folder:
user_pref("browser.cache.disk.parent_directory","C:\\Temp\\Cache");

<------------

where C:\\TEMP\\CACHE could be anything, though I suggest DOS conventions and simple directory structure. ff will make/re-make the CACHE subdirectory if not present.

FF is highly configurable- I have also moved my profile to another drive. The same goes for thunderbird and sunbird. If you would like it to do something it doesn't do stock, I would suggest a search of the proper Moz forum- somebody else has probably needed the same thing-

Rgds, Bruce



Report Offensive Follow Up For Removal

Response Number 5
Name: DAVEINCAPS
Date: October 23, 2005 at 22:05:51 Pacific
Subject: Periods In Directory Names
Reply: (edit)
I'm not familiar with DEL16 but as M2 suggests, the problem is probably with that command. Have you tried just using the 6.22 DEL command?

I remember using dos 3.3 way back in the dark ages. It couldn't navigate through directories with extensions. 6.22 can do that so I'd think the DEL command would work.


Report Offensive Follow Up For Removal


Response Number 6
Name: Glitchman
Date: October 23, 2005 at 23:11:11 Pacific
Subject: Periods In Directory Names
Reply: (edit)
As suggested previously, why not just use the del command in the script (or even deltree /y if you so choose)? I am also unfamiliar with del16 and its (apparent) limitations. I frequently name directories in DOS with a period to "cheat" by getting 11 characters in my subdirectories (and to avoid any FAT overhead), so your current script would really hate me. :)

As for moving the Firefox cache location I also do this on Windows NT 4 since I do not want the cache to fill up my slightly limited C: drive. However, I should point out a slight correction to response #4: If you use the following in user.js (or prefs.js as I do)

user_pref("browser.cache.disk.parent_directory","C:\\Temp\\Cache");

you will end up with your cache in C:\Temp\Cache\Cache. Firefox automatically creates an additional Cache folder wherever you place it, hence the "parent_directory" part in Firefox. So do not end the path with Cache unless you want 2 subdirectories with that name. It's a slight limitation of Firefox, but it shouldn't pose a problem.


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Periods In Directory Names

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




Slow boot time

Trasnferring Documents from old HD

My k8T Neo-v usb's aren't working!

Date Modified = Date Created Time

system files on removable harddrive


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC