Sign in to follow this  
Followers 0
g00gle

Simple Q About FileWrite

3 posts in this topic

Currently trying to write a script that will generate a proper batch file and then run it.

Have been playing around with the GUI options available.

Anyways, long story short.. how do I send a quote (") in FileWrite or FileWriteLine ?

FileWrite( "file.bat", "dir ")
    FileWrite( "file.bat", $var)
    FileWrite( "file.bat",GUICtrlRead($file))
    FileWrite( "file.bat", "\*.mkv")
    FileWrite( "file.bat", $var)
    FileWriteLine( "file.bat", "/b > file.txt")

where $var is where I need a "

Share this post


Link to post
Share on other sites



hi g00gle,

Welcome to the forums :unsure:

Any of these will do fine: :>

$test = @ScriptDir & "\quotes.txt"
FileWriteLine($test, '"')
FileWriteLine($test, """")
FileWriteLine($test, Chr(34))

Hope this helps ;)

-smartee

thank you been hunting in the help file for about 20minutes trying to figure this out

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