1 Replies - 1048 Views - Last Post: 22 December 2009 - 08:00 AM Rate Topic: -----

#1 Adkins  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 66
  • View blog
  • Posts: 560
  • Joined: 27-October 09

Batch file help

Posted 22 December 2009 - 06:38 AM

Hello all!

I am trying to create a batch file that can read into an XML document searching for <setting name="BaseDirectory" serializeAs="String"> and replacing the associated value with the arguments received from the user. Example:

<setting name="BaseDirectory" serializeAs="String">


<setting name="BaseDirectory" serializeAs="String">

as per the input from the user before the script starts. Is this possible or am I dreaming outside the realm of reason once again? Thanks for the input and the help!

Is This A Good Question/Topic? 0
  • +

Replies To: Batch file help

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6246
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: Batch file help

Posted 22 December 2009 - 08:00 AM

I think you're going to need to do XPath to do what you want, and I'm not sure how you could do that in batch. It looks like you could step up to the next level of batch, PowerShell, and do it though: http://thepowershell...powershell.aspx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1