How can I delay file deletion until next reboot from my program?

前端 未结 3 1390
面向向阳花
面向向阳花 2021-01-03 01:11

My application needs to delete some files, but this should happen until next windows startup.

What I\'m doing now is to write this string value in RunOnce registry k

3条回答
  •  鱼传尺愫
    2021-01-03 01:40

    Use cmd.exe instead. That's the "new" command prompt since Windows NT.

    cmd.exe /c del "c:\some file.ext"
    

提交回复
热议问题