Thread: read a drive

  1. #1
    Unregistered
    Guest

    Angry read a drive

    I know you can read the contents of a c drive with readdir but how does it determine free space from used space.

    running dos on win95.

    thanks all.

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Depending on your version of win95 you can call the API function GetDiskFreeSpaceEx() or GetDiskFreeSpace().
    zen

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    28
    a call to

    system("dir");

    will print drive info

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What Would You Use To Read User Input?
    By djwicks in forum C Programming
    Replies: 11
    Last Post: 04-05-2005, 03:32 PM
  2. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  3. I am lost on how to read from file and output to file?
    By vicvic2477 in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2005, 11:52 AM
  4. Read Array pro!!Plz help!!
    By Supra in forum C Programming
    Replies: 2
    Last Post: 03-04-2002, 03:49 PM
  5. Help! Can't read decimal number
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 09-07-2001, 02:09 AM