I am trying to create an xml file on the local drive of the user computer. The file must contain the logged on users name inside it. Here is what I have:
Set objNetwork = wscript.CreateObject("wscript.network")
Set doc = CreateObject("Microsoft.XMLDOM")
MsgBox objNetwork.Username
doc.async = false
doc.ValidateonParse = False
doc.resolveExternals = False
doc.LoadXml("<?xml version='1.0'?><DataRoot><UserName>TestUsr<UserName></UserName></UserName></DataRoot>")
doc.save "C:\test.xml"
set doc = Nothing
Where I have TestUsr, I need it to self poplulate with the logged on users name.
Thanks for the help!!
Set objNetwork = wscript.CreateObject("wscript.network")
Set doc = CreateObject("Microsoft.XMLDOM")
MsgBox objNetwork.Username
doc.async = false
doc.ValidateonParse = False
doc.resolveExternals = False
doc.LoadXml("<?xml version='1.0'?><DataRoot><UserName>TestUsr<UserName></UserName></UserName></DataRoot>")
doc.save "C:\test.xml"
set doc = Nothing
Where I have TestUsr, I need it to self poplulate with the logged on users name.
Thanks for the help!!