get line from xml file by cmd batch



hello

I have 100 folders

every folder have XML FILE

HOW I CAN MAKE A BATCH FILE PLEASE

that read from xml file and change the folder name

i want the batch read this line



**<SMTP_Display_Name type="SZ">user@account.com</SMTP_Display_Name>**


then change the folder name to

user@account.com

user1@account.com



<?xml version="1.0" encoding="utf-16" ?>

<Account_Name type="SZ">user@account.com</Account_Name>
<Connection_Type type="DWORD">00000003</Connection_Type>
<Server_Sort_Order type="DWORD">0000002e</Server_Sort_Order>
<POP3_Server type="SZ">imap.account.com</POP3_Server>
<POP3_User_Name type="SZ">user@account.com</POP3_User_Name>

<POP3_Port type="DWORD">000003e3</POP3_Port>
<POP3_Secure_Connection type="DWORD">00000001</POP3_Secure_Connection>
<POP3_Timeout type="DWORD">0000003c</POP3_Timeout>
<Leave_Mail_On_Server type="DWORD">00000001</Leave_Mail_On_Server>
<Remove_When_Deleted type="DWORD">00000001</Remove_When_Deleted>
<Remove_When_Expired type="DWORD">00000000</Remove_When_Expired>
<POP3_Skip_Account type="DWORD">00000000</POP3_Skip_Account>
<POP3_Prompt_for_Password type="DWORD">00000000</POP3_Prompt_for_Password>

<SMTP_Use_Sicily type="DWORD">00000002</SMTP_Use_Sicily>
<SMTP_Port type="DWORD">0000024b</SMTP_Port>
<SMTP_Secure_Connection type="DWORD">00000001</SMTP_Secure_Connection>
<SMTP_Timeout type="DWORD">0000003c</SMTP_Timeout>
<SMTP_Display_Name type="SZ">user@account.com</SMTP_Display_Name>
<SMTP_Email_Address type="SZ">user@account.com</SMTP_Email_Address>
<SMTP_Split_Messages type="DWORD">00000000</SMTP_Split_Messages>

No comments:

Post a Comment