Archive: Write command in autoexec.bat


Write command in autoexec.bat
I've read nsis help many times but never found a way to write a line in autoexec.bat (or any other text file) without changing its the contents.
I want to add:
Deltree /y c:\Windows\Temp\*.*
MD c:\Windows\Temp

Other thing:
How to write "$temp" in DOS style? I mean,
command.com /c del tempdir\*.*
What is the sintax for tempdir

So, i would be able to detect $temp and write its correspondig syntax in DOS.


You need to open the file to append, then FileSeek to the end before writing.
$TEMP contains the temp folder path. Just write that, or %TEMP%.

-Stu