Guest Resonance Posted May 25, 2005 Posted May 25, 2005 how do I get autoit to save a Filewrite to a different folder? It always seems to save to where ever the script was run from.
Helge Posted May 25, 2005 Posted May 25, 2005 (edited) Just specify the folder.... $file = FileOpen("c:\mydir\test.txt", 1) ; Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileWrite($file, "Line1") FileWrite($file, "Still Line1" & @CRLF) FileWrite($file, "Line2") FileClose($file) Edited May 25, 2005 by Helge
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