Quote issues in VB.NET

Running into a small issue and not sure on the syntax to get around it...
I need to execute:

sc \\iamdc.grhq.XXX.com query "DirXMLRemote 8000"

My issue though is the quotes. How to I keep the quotes only contained within the command instead of the logic using them?

Not sure if I am explaining that right :slight_smile:

SW.WriteLine("sc \\iamdc.grhq.XXX.com query "DirXMLRemote 8000"")

---------- Post updated at 11:15 AM ---------- Previous update was at 07:51 AM ----------

Anyone? :confused: Really stuck here...

---------- Post updated at 11:17 AM ---------- Previous update was at 11:15 AM ----------

Figured it out.

SW.WriteLine("sc \\iamdc.grhq.XXX.com query ""DirXMLRemote 8000""") 

You will have a better luck if you post your question in the VB.NET forum:
Visual Basic .NET Forums