g00gle 0 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 " Share this post Link to post Share on other sites
smartee 14 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 Share this post Link to post Share on other sites
g00gle 0 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 Share this post Link to post Share on other sites