CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Posts
    4

    Volume Serial Number - diskette

    Hi,

    I need to get and change the volume serial number a diskette. I'm developing a program written in ANSI C (must be ANSI C, I can`t use visual languages). Is there any function or library?

    Thanks!

  2. #2
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128
    For Windows, try SetVolumeLabel("A:\", "VolumeLabel").

  3. #3
    Join Date
    Apr 2003
    Posts
    4
    I`m not refering to Volume Label, I need to access Volume Serial Number of A:\

    thx!

  4. #4
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    The volume serial number is part of the boot sector stored in the extended BPB. For NTFS this is a LONGLONG at byte offset 0x48. Try a google search for what you are trying to accomplish, I have seen sample code posted in the past for changing the value.

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