zellis Posted February 20, 2006 Posted February 20, 2006 my excuese is that im new to auto it. :"> the plan is to automaticly generate a file named token.dat, write some data and then save and close the file. (no user input, all done in the background) expandcollapse popup $test = "Saving DAT file" $file = FileOpendialog ($test, "c:\ipu_final_config\", "DAT files (*.dat)" ,8, "token.dat") send ("!o") ; Check if file opened for writing OK send ('Y') FileWrite($file, "Generated by IPU setup tool// " & @CRLF & "DO NOT MODIFY!" & @CRLF & @CRLF) FileWrite($file, "test line 1") filecloese why does this not work? am i using the a wrong function? thanks shawn googletag.cmd.push(function() { googletag.display('div-gpt-ad-1781426743640-0'); }); Developers Jos Posted February 20, 2006 Jos Developers 35k 177 Je maintiendrai Developers Posted February 20, 2006 (edited) my excuese is that im new to auto it. :"> the plan is to automaticly generate a file named token.dat, write some data and then save and close the file. (no user input, all done in the background) $test = "Saving DAT file" $file = FileOpendialog ($test, "c:\ipu_final_config\", "DAT files (*.dat)" ,8, "token.dat") send ("!o") ; Check if file opened for writing OK send ('Y') FileWrite($file, "Generated by IPU setup tool// " & @CRLF & "DO NOT MODIFY!" & @CRLF & @CRLF) FileWrite($file, "test line 1") filecloese why does this not work? am i using the a wrong function? thanks shawn Have a look at the helpfile example of FileWrite() ... Edited February 20, 2006 by JdeB 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