Sign in to follow this  
Followers 0
Brainwork

Edit files without an extension

3 posts in this topic

#1 ·  Posted (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 by Brainwork

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Thnx! Works ;)

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