Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have an odd problem, if I use a (C:\\ProductName\\BAK\\) path for saving files it will only allow a certain number of files to be written. If I use another similar approach (below)

C:\\Test_Stuff\\Sub_Test_Stuff\\
the program will quite happily go beyond the limit of the first the limit seems to 132
as XX_0132.msg is the limit in the first, the second I have over XX_0200.msg.
A few things occurred:
1) I am not calculating the number correctly.
2) There is a maximum number of files that can be written.
3) A setting in Windows is preventing 0133 greater be written.
4) The files are .msg Outlook message files.
to answer
1) I have by changing the save location created over 200 saved files
2) See above
3) I can't see any setting different in the tools menu
4) Possible but why will you work else where??
Glenn
Posted
Comments
Christian Graus 28-Aug-12 11:37am    
We save a lot more files than that. What is the error message you get ?
glennPattonWork3 28-Aug-12 11:46am    
That's at least half the problem, there is no error message the only thing to alert you to the fact that this is happening it the time/date on a XX_0132.msg changes and that is all! Does Windows/DOS let you over write the contents of a file without alerting the user (I didn't think so but...)
Christian Graus 28-Aug-12 11:59am    
Is this happening in your own code ? You can set a line of code to not prompt when overwriting a file.
glennPattonWork3 28-Aug-12 12:00pm    
Well if I issue the copy con XX_0126.msg ctrl Z (in command) and created a file in the location with 0 size meaning the OS is operating fine (XPpro) I am running out of ideas here!
ZurdoDev 28-Aug-12 12:02pm    
Sounds like you have some other process that is somehow messing things up. Something has to be different. I don't think it is on the Windows side though.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900