想請教各位大大,我在撰寫vbs時,要如何才能把下列紅字部分,透過vbs寫入到txt內文中?
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
AppDataPath = objShell.ExpandEnvironmentStrings("%AppData%")
AppVMClientPath = AppDataPath & "\test\test Client"
Set testSet = objFSO.CreateTextFile(AppVMClientPath & "\test.txt", True)
<span style="color: #FF0000;">VMSet.Write("<strong><?xml version="1.0"?> <Root><RecentServer serverName="vSer.lab.com.tw" lastLogInAsCurrentUser="false"/><SecurityMode certCheckMode="2"/><LastLoginAsCurrentUser loginAsCurrentUser="false"/><GlobalDefaultServer serverName="vSer.lab.com.tw"/><HIDECLIENTAFTERLAUNCHSESSION hideClientAfterLaunchSession="false"/></Root></strong>")</span>
VMSet.Close
testSet.Write("<?xml version=""1.0""?> <Root><RecentServer serverName=""vSer.lab.com.tw""lastLogInAsCurrentUser=""false""/><SecurityMode certCheckMode=""2""/><LastLoginAsCurrentUser loginAsCurrentUser=""false""/><GlobalDefaultServer serverName=""vSer.lab.com.tw""/><HIDECLIENTAFTERLAUNCHSESSION hideClientAfterLaunchSession=""false""/></Root>")