Jump to content

sudhi164

Member
  • Posts

    26
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    India

Everything posted by sudhi164

  1. Hi, I have an application which is built on .net 2.0 framework. I am looking for command to execute powershell command from c#. Ex: in Powershell command prompt, we need to type "Install-WindowsFeature XPS-viewer" to enable XPS viewer. I am looking for C# code to do this. I don't want to use script file.
  2. yes, i am running in elevated privilages.
  3. Hi, I am trying to write an utility in C# for activation windows 7 OS. when i send the commands through this utility to activate the OS, i get the return value as 5 (access denied). Please let me knwo how to activate the OS through Utility. Regards, Sudhir
  4. Hi, I have a XML file which contains some values with sapace for a node. When i am trying to read the valeu from VC++ i am getting tha values without space. How to read the copleted valure with out it getting trimed. Example of XML file: <Parameter> <ParameterName>UserOptions/OperatingSystemSettings/Password</ParameterName> <ParameterValue> sudhir </ParameterValue> </Parameter> In above xml observ space at the begining and end of sudhir value. Below is the code i have to read the value. hr = ((MSXML2::IXMLDOMElement*)objXmlNode)->getElementsByTagName(strParameterValueNode)->Getitem(0)->get_text(&strParameterValue); Please let me know if any one knwos how to read teh complet values Regards, Sudhir
×
×
  • Create New...