Can't Save BMP File Deep Into Folder Layer

I have a Print Screen Utility called Print Screen Deluxe.  It will capture anything on a Win 98 screen and print it, or you can save it various file formats one of which is .bmp.  I made a folder about 5 folders deep in my file structure to store some of these images.  The first screen shot I saved ok as a BMP file to this folder, but the second one wouldn't save.  I kept getting a message saying something to the effect "Can't Output To A File", "Maybe Hard Drive is Full" (which it isn't - I have about 8 Gig left).  So, I made a folder right at the C:\ level and not a subfolder.  Then I had no problem, it saved it right to it.  I tried 3 other images after this and it saved it right to this 1st level folder with no problems.  What causes this?  I also remember reading somewhere that when you download a file, like a driver update, some sites recommend not downloading it to a folder buried some levels down, download it to a "first level" folder.  I thought this might be related.  Comments please?
Thanks,
Joe Boyd
JoeBoydAsked:
Who is Participating?
 
coxlConnect With a Mentor Commented:
If you are going several levels deep it is important to remember that the 255 character long file name includes the full path. There are also some applications that will not save beyond the DOS limit of a total of around 66 characters (not sure of the exact number but it is around there). 255 seems like a lot, but I have seen people create long file names for the directories and files (I do it myself) and this can create a problem.
0
 
JoeBoydAuthor Commented:
Cox,
Thanks, you know you may have the answer!  I don't know if I exceeded the 255 character limit but I'm very sure I exceeded the 66 character limit when you include the full path.  I didn't realize the full path was included so I learned a lot from you thank.  

If you don't mind, I will wait a little longer to see if I get any other answers, then I will come back award you the points.

Thanks very much for your response; it has been extremely helpful.
Joe Boyd
0
 
cookreCommented:
There are still many apps in use that are 16-bit that don't support long file names.  You may not be hitting Windows' 255 limit, but you may be hitting an older app's internal limit.

Is it safe to presume that the second (the one that failed to save) file's name was one or more characters longer than the first?

If so, then you just happened to span the boundary.  If not, something else is going on.

PS: If you can see long names in the app's file dialogs, then you can go to the full 255.  If the path an file in question aren't at the 255 limit, one would tend to suspect a defect in the app.

Here's a long shot for you - depending on the app, you'd get that sort of behavior if there were already a hidden, read-only file of the same name in that directory.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
cookreCommented:
I just tested v4 of PSD and it worked fine down many nodes all the way to the 255 limit, at which point it gave an error other than the one you mentioned.

If you're still using the old version from Win3.x, the message you mentioned would likely appear and a lower total path length limit would not seem unreasonable.

BTW, I'm not poaching points - if it turns out to be related to path length, coxl deserves them.
0
 
JoeBoydAuthor Commented:
Cookre,
Thanks for the additional information.  Actually I would like to award points to both of you (that was a nice comment about not wanting to poach - that's another thing I like about this site, everyone seems friendly and professional).  Coxl did give me the information first on the 255 limit which I have a feeling was my problem (I didn't actually go back and check, but my folder names were fairly long).
However, you also put me on to something about Print Screen Deluxe.  I am using version 3.0b, which I was sent last year for Win 98 (it is suppose to be 32 bit).  I guess I lost track and didn't realize there was version 4 out now.  I will have to see about getting that update.  This information in itself is a great help - thanks.
I guess to award points to two different people, I have to post another posting aimed at the person I want to give points to.  You can't give points to two people under one posting, correct?  Thanks again,
Joe Boyd
joe@lightstreamcomputing.com
0
 
cookreCommented:
I appreciate the thought, and that's good enough.  Just go ahead and accept coxl's answer.  

Don't worry about it, there will likely be other times.  See y'all around...
0
 
JoeBoydAuthor Commented:
Thanks, I appreciate you answer.  I believe it was right on the mark and you taught me something I didn't know, and that in itself is worth the points.  I didn't realize the 255 limit included the full path.  Thanks
Joe Boyd
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.