Jump to content
Sign in to follow this  
au3scr

File write problem

Recommended Posts

au3scr

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
Jos

the underscore at the end of the line above FileWrite().

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.