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
Use cmd.exe instead. That's the "new" command prompt since Windows NT.
cmd.exe /c del "c:\some file.ext"