g00gle Posted May 20, 2011 Share Posted May 20, 2011 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 " Link to comment Share on other sites More sharing options...
smartee Posted May 20, 2011 Share Posted May 20, 2011 hi g00gle, Welcome to the forums Any of these will do fine: $test = @ScriptDir & "\quotes.txt" FileWriteLine($test, '"') FileWriteLine($test, """") FileWriteLine($test, Chr(34)) Hope this helps -smartee Link to comment Share on other sites More sharing options...
g00gle Posted May 20, 2011 Author Share Posted May 20, 2011 hi g00gle, Welcome to the forums 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 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