Thread: How to programmatically change a directory’s date/time under Win95?

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    3

    How to programmatically change a directory’s date/time under Win95?

    Does anyone know how to change the creation date and time of a directory programmatically, under Windows 95?

    Please note: I know it can easily be done under Windows NT/2000/XP by getting a file handle for the directory by calling CreateFile(…,FILE_FLAG_BACKUP_SEMANTICS, …) , and then passing that handle to SetFileTime(); But this doesn’t work under Windows 95!

    Thank you,
    Mike

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Welcome to the forums!

    There are a few alternatives, none of them very good.
    • Use 16bit assembler code (this must be compiled with a 16bit compiler).
    • Change the computer date, recreate the directory.
    • Manipulate the FAT manually. Dangerous.
    • Ignore Win9x. How many people are running Win95 and installing new software?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 08:55 AM
  2. Need help with C program
    By ChrisH in forum C Programming
    Replies: 38
    Last Post: 11-13-2004, 01:11 AM
  3. adding a function to a program
    By trippedwire in forum C++ Programming
    Replies: 9
    Last Post: 09-30-2004, 12:35 PM
  4. help with calculating change from a dollar
    By z.tron in forum C++ Programming
    Replies: 3
    Last Post: 09-13-2002, 03:58 PM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM