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

This is a discussion on How to programmatically change a directory’s date/time under Win95? within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know how to change the creation date and time of a directory programmatically, under Windows 95? Please note: ...

  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, 07:55 AM
  2. Need help with C program
    By ChrisH in forum C Programming
    Replies: 38
    Last Post: 11-13-2004, 12: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21