Solved

Can't  Save BMP File Deep Into Folder Layer

Posted on 2000-04-09
7
222 Views
Last Modified: 2013-12-28
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
0
Comment
Question by:JoeBoyd
  • 3
  • 3
7 Comments
 

Accepted Solution

by:
coxl earned 25 total points
ID: 2698833
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
 

Author Comment

by:JoeBoyd
ID: 2699875
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
 
LVL 22

Expert Comment

by:cookre
ID: 2702316
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
How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

 
LVL 22

Expert Comment

by:cookre
ID: 2702371
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
 

Author Comment

by:JoeBoyd
ID: 2714229
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
 
LVL 22

Expert Comment

by:cookre
ID: 2714333
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
 

Author Comment

by:JoeBoyd
ID: 2714454
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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

For a variety of reasons, it sometimes makes sense to reboot a Windows-based computer on a regular, perhaps daily basis. This "cures" a lot of ills by resetting processes, flushing caches, refreshing memory, and reestablish network connections. In a…
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now