Dim EnvironmentPath
EnvironmentPath="D:\Envlib.xml" call createEnviormentXML(EnvironmentPath)
environment.LoadFromFile EnvironmentPath
URL=Environment.Value("netUrl")
systemutil.Run Url
Function createEnviormentXML(xmlpath) Set fso=createObject("Scripting.FileSystemObject") Set oXml=fso.CreateTextFile(xmlPath)
oxml.Write_
"<Environment>"+vbCrlf+"<Variable>"+vbCrlf+_
"<Name>netname</Name>"+vbCrlf+_
"<Value>baidu</Value>"+vbCrlf+_
"</Variable>"+vbCrlf+_
"</Variable>"+vbCrlf+_
"<Name>netname</Name>"+vbCrlf+_
"<Value>http://www.baidu.com</Value>"+vbCrlf+_
"</Variable>"+vbCrlf+_
"<Environment>" Set oxml=nothing Set fso=nothing EndFunction
就是这句代码总是报错
"<Environment>"+vbCrlf+"<Variable>"+vbCrlf+_
提示为: 缺少语句 Line (12): ""<Environment>"+vbCrlf+"<Variable>"+vbCrlf+_". 缺少语句什么意思?请各位大神帮忙分析一下,谢谢