Jump to content
Sign in to follow this  
Brainwork

Edit files without an extension

Recommended Posts

Brainwork

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
Andreik

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
Brainwork

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  

×