Sign in to follow this  
Followers 0
gcue

quoting special characters

4 posts in this topic

hello.

i know this is a problem because of the quotes and special characters maybe?

im trying to do this:

FileWrite($file, "test
Set-schema: HPD:Help Deskitsmprod
Query: 1000005125=1000005124=1000000688=1000000687=1000000398=1000000397=301291000=AST:CMDBAssoc CI UA CMDBAssoc301290700=AST:AssetPeople_AssetBase '301921200' = "SYE" AND '7' != "Resolved" AND '7' != "Closed" AND '7' != "Cancelled"
end")oÝ÷ Ù¸·ö÷­®'v§Øb±»­Ü²Ø^±©¦ºé¿m«­¢+ØÀÌØíÑáÐôÌäíÑÍÐ)Mе͡µè!Aé!±Àͬ¥Ñ͵Áɽ)EÕÉäèÄÀÀÀÀÀÔÄÈÔôÄÀÀÀÀÀÔÄÈÐôÄÀÀÀÀÀÀØààôÄÀÀÀÀÀÀØàÜôÄÀÀÀÀÀÀÌäàôÄÀÀÀÀÀÀÌäÜôÌÀÄÈäÄÀÀÀõMPé
5   Íͽ
$U
5   ÍͽÌÀÄÈäÀÜÀÀõMPéÍÍÑA½Á±}ÍÍÑ  ÍÌäìÌÀÄäÈÄÈÀÀÌäìôÅÕ½ÐìÌäì()¥±]É¥Ñ ÀÌØí¥±°ÀÌØíÑáÐ

Share this post


Link to post
Share on other sites



You get the point...

$String="Set-schema: HPD:Help Deskitsmprod Query: 1000005125=1000005124=1000000688=1000000687=1000000398=1000000397=301291000=AST:CMDBAssoc CI UA CMDBAssoc301290700=AST:AssetPeople_AssetBase '301921200' = " & '"SYE"' & " AND '7' != " & '"Resolved"' & " AND '7' != " & '"Closed"' & " AND '7' != " & '"Cancelled" end"'

MsgBox(4096,"",$String)

Share this post


Link to post
Share on other sites

Why are you required to have mixed quote types inside the string anyways? Use one type of quotes on the inside and the other on the outside. Problem solved.

Share this post


Link to post
Share on other sites

worked great thanks!

You get the point...

$String="Set-schema: HPD:Help Deskitsmprod Query: 1000005125=1000005124=1000000688=1000000687=1000000398=1000000397=301291000=AST:CMDBAssoc CI UA CMDBAssoc301290700=AST:AssetPeople_AssetBase '301921200' = " & '"SYE"' & " AND '7' != " & '"Resolved"' & " AND '7' != " & '"Closed"' & " AND '7' != " & '"Cancelled" end"'

MsgBox(4096,"",$String)

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