CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    119

    Determine maximum file size allowed?

    Is there a way to determine the maximum allowed file size for a selected disc? I work with large video files and I'm getting complaints that when users attempt to save them to a FAT partition the program simply crashes when it reaches the 2GB/4GB limit. I'd like to determine the maximum file size allowed for the output disc and throw up a warning if the estimated output file size is going to exceed that limit.

    Thanks,
    Dan

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Determine maximum file size allowed?

    I don't know a method, but the limits for FAT is 4GB while for NTFS it's (16TB-64KB).
    See http://technet.microsoft.com/en-us/l...45(WS.10).aspx
    So, maybe you can just check the type of the filesystem and check if it's FAT or NTFS.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured