ira wrote:
I do not understand how to embed your other code segment with the DLL.
If by "other code segment" you mean DeleteOnReboot(); as I said, I was suggesting it as an
alternative to running a batch file on startup. All that is required is:
Code:
DeleteOnReboot("filename")
Windows will delete the file next time Windows starts up.
Btw, if you know the name of the batch file, you don't need to use %0 (though it might be more convenient.) %0 expands to whatever was used to launch the .bat file, up to (but not including) the first command-line arg (which is %1.)