紫水晶编程技术论坛 - 努力打造成全国最好的编程论坛's Archiver
论坛广场
›
脚本和批处理
› Delete all the files in the folder
diddom
发表于 2012-6-6 05:14:02
Delete all the files in the folder
说明
范例指令档示范如何删除资料夹中所有附档名为 .txt 的档案 。本范例指令档必需在本机执行。
范例指令码
Const DeleteReadOnly = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\FSO\*.txt"), DeleteReadOnly
页:
[1]
查看完整版本:
Delete all the files in the folder