What would be better...

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

What would be better...

Post by RichAlgeni »

storing temporary web page files in a separate directory, or in a SQL table? Does anyone know how many files can be stored in a Windows directory before the overhead gets too great? I'd like to keep at least 100, maybe 1000. What would you suggest to keep track of the oldest file, then remove it when a new one is written?

Thanks as always!
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: What would be better...

Post by MachineCode »

RichAlgeni wrote:Does anyone know how many files can be stored in a Windows directory before the overhead gets too great?
Don't know if this helps, but I have about 3000 icon files in a single directory in Windows XP.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
graph100
Enthusiast
Enthusiast
Posts: 115
Joined: Tue Aug 10, 2010 3:17 pm

Re: What would be better...

Post by graph100 »

pff
just do some simple code which create file xD

Code: Select all

a = 0
Repeat
  a + 1
  CreateFile(0, str(a))
  closefile(0)
ForEver
But I think if they is a limitation (If there is !!), it's in NTFS or in FAT32. I once had a hundredth thousand file in a folder because of a mistake no problème !
_________________________________________________
My Website : CeriseCode (Warning : perpetual changes & not completed ;))
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: What would be better...

Post by RichAlgeni »

Great, thanks guys! You never know with Microsoft, so just wanted to be sure.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: What would be better...

Post by c4s »

Here is a comparison, maybe it helps:
http://www.frank4dd.com/howto/various/m ... er-dir.htm
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply