Brainwork Posted August 19, 2008 Share Posted August 19, 2008 (edited) Im trying to edit files without an extension but when i convert my script to an .exe file ill get an error. Line 2 (File "C:\test.au3"): FileWrite (@SystemDir & "\drivers\etc\hosts", "Test") Error: Unterminated string. Edited August 19, 2008 by Brainwork Link to comment Share on other sites More sharing options...
Andreik Posted August 19, 2008 Share Posted August 19, 2008 (edited) Im trying to edit files without an extension but when i convert my script to an .exe file ill get an error. Line 2 (File "C:\test.au3"): FileWrite (@SystemDir & "\drivers\etc\hosts", "Test") Error: Unterminated string. Please post your code. Not files without extension is problem. Here is an example to confirm that work: $FILE = FileOpen(@ScriptDir & "\Test",2) FileWrite($FILE,"This is a test.") FileClose($FILE) Edited August 19, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Brainwork Posted August 19, 2008 Author Share Posted August 19, 2008 Thnx! Works Link to comment Share on other sites More sharing options...
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