Write text to a file: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library)
 
m (Updated author and download links, and changed format of some pages.)
Line 12: Line 12:
</highlight-nsis>
</highlight-nsis>


Page author: rainmanp7
Page author: [[User:rainmanp7|rainmanp7]]

Revision as of 12:41, 23 April 2005

Description

This example shows you how to write text to a new file.

The Script

FileOpen $9 apachesrvin.bat w ;Opens a Empty File an fills it
FileWrite $9 "cd $INSTDIR\apache$\r$\n"
FileWrite $9 "apache -n Apache -k install$\r$\n"
FileWrite $9 "net start Apache$\r$\n"
FileWrite $9 "exit$\r$\n"
FileClose $9 ;Closes the empty file

Page author: rainmanp7