有这样的文件:
01 이정현 - 00001.txt
02 이정현 - GX 339-4.txt
03 이정현 - Bird.txt
04 이정현 - 바꿔.txt
如何输出?输出到List.txt里!
我的代码,不知道为什么不行!
Dim FSO,s
Set FSO=CreateObject("Scripting.FileSystemObject")
Set AllF=FSO.GetFolder(fso.GetParentFolderName (WScript.ScriptFullName ))
For Each file In AllF.Files
s=s&file.name&VbCrLf
Next
Set FW=FSO.CreateTextFile("List.txt",1)
MsgBox s
FW.Write s
FW.Close
Set FW=Nothing
=======
s变量可以正确地弹出来,但是就没办法写入!想请教为什么!!
如何解决呢?
本想上传附件来方便一点的,但没办法上传了!哎!
01 이정현 - 00001.txt
02 이정현 - GX 339-4.txt
03 이정현 - Bird.txt
04 이정현 - 바꿔.txt
如何输出?输出到List.txt里!
我的代码,不知道为什么不行!
Dim FSO,s
Set FSO=CreateObject("Scripting.FileSystemObject")
Set AllF=FSO.GetFolder(fso.GetParentFolderName (WScript.ScriptFullName ))
For Each file In AllF.Files
s=s&file.name&VbCrLf
Next
Set FW=FSO.CreateTextFile("List.txt",1)
MsgBox s
FW.Write s
FW.Close
Set FW=Nothing
=======
s变量可以正确地弹出来,但是就没办法写入!想请教为什么!!
如何解决呢?
本想上传附件来方便一点的,但没办法上传了!哎!
