Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在下面写了一个脚本:
... Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("XXXX.xml", True) a.write...... a.close
我想将 xml 文件“a” - xxxx.xml 保存到指定路径。我搜索“Scripting.FileSystemObject”的功能,应该有选择保存路径的方法。
但我尝试后没有找到答案。有人知道吗?
您只需将路径添加到文件名:
Set a = fs.CreateTextFile("C:\Temp\XXXX.xml", True)