本帖最后由 pcl_test 于 2015-11-29 00:23 编辑
vbs- Set fso = CreateObject("Scripting.FileSystemObject")
- Set file = fso.OpenTextFile(".\测试.list", 1)
- txt = Replace(file.ReadAll, "*", " ")
- Set objWord = CreateObject("Word.Application")
- Set objDoc = objWord.Documents.Add()
- objWord.Selection.TypeText txt
- objWord.selection.WholeStory
- objWord.selection.font.Name = "黑体"
- objDoc.SaveAs fso.GetFolder(".").Path&"\测试.doc"
- objDoc.Close
- objWord.Quit
复制代码
|