Sign in to follow this  
Followers 0
au3scr

File write problem

2 posts in this topic

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


Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0