+ Reply to Thread
Results 1 to 2 of 2

Thread: How to delete file on OS startup?

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    49

    How to delete file on OS startup?

    Hi All,

    I am developing an installer. It requires some driver files to get deleted on next windows start-up.

    I cannot delete them when my installer runs. this is why I need this.

    I know that Windows does this thing but do not know how to do this programmatically.

    WIN32 API will do for me.

    Thanks in advance.

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    48
    Use "MoveFileEx" WIN32 API with "MOVEFILE_DELAY_UNTIL_REBOOT" flag.

    Enjoy!

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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