au3scr Posted February 27, 2008 Posted February 27, 2008 hi can anyone say me why i have problem with writing file? What i did wrong? Func Defaults ($iDelay = 0) Local $sCmdFile FileDelete(@ScriptDir & "\settings") $sCmdFile = 'toor' & @CRLF _ & 'NO' & @CRLF _ & 'YES' & @CRLF _ & 'YES' & @CRLF _ & 'C:\Program Files\Mozilla Firefox\firefox.exe' & @CRLF _ & 'Notepad' & @CRLF _ & @ProgramFilesDir &'\7-Zip\7zFM.exe' & @CRLF _ & @ProgramFilesDir & '\OpenOffice.org 2.3\program\swriter.exe' & @CRLF _ & @ProgramFilesDir &'\OpenOffice.org 2.3\program\smath.exe' & @CRLF _ & @ProgramFilesDir &'\OpenOffice.org 2.3\program\simpress.exe' & @CRLF _ & @ProgramFilesDir &'\OpenOffice.org 2.3\program\sdraw.exe' & @CRLF _ & @ProgramFilesDir &'\OpenOffice.org 2.3\program\scalc.exe' & @CRLF _ & @ProgramFilesDir &'\OpenOffice.org 2.3\program\sbase.exe' & @CRLF _ & @ProgramFilesDir &'\Notepad++\notepad++.exe' & @CRLF _ & 'Word' & @CRLF _ & 'Excel' & @CRLF _ & 'Wallpapers=YES' & @CRLF _ & @ProgramFilesDir &'\IrfanView\i_view32.exe' & @CRLF _ & @ProgramFilesDir&'\GIMP-2.0\bin\gimp-2.4.exe' & @CRLF _ & @ProgramFilesDir&'\VideoLAN\VLC\vlc.exe' & @CRLF _ & 'YES' & @CRLF _ FileWrite(@ScriptDir & "\settings", $sCmdFile) EndFunc >"Z:\autoit\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\piiratud\Desktop\flux.au3" /autoit3dir "Z:\autoit\AutoIt3" /UserParams +>23:23:04 Starting AutoIt3Wrapper v.1.10.1.4 Environment(Language:0409 Keyboard:00000425 OS:WIN_XP/Service Pack 2 CPU:X86) >Running AU3Check (1.54.10.0) from:Z:\autoit\AutoIt3 C:\Documents and Settings\piiratud\Desktop\flux.au3(239,5) : ERROR: syntax error FileWrite
Developers Jos Posted February 27, 2008 Developers Posted February 27, 2008 (edited) the underscore at the end of the line above FileWrite(). Edited February 27, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now