1:python 控制ps批处理相关资料
1.1:win32com.client库调用ps动作:
import os
from win32com.client import Dispatch, GetActiveObject, GetObject
def getFileList(dir, Filelist, ext=None):
"""
获取文件夹及其子文件夹中文件列表
输入 dir:文件夹根目录
输入 ext: 扩展名
返回: 文件路径列表
"""
newDir = dir
if os.path.isfile(dir):
if ext is None:
Filelist.append(dir)
else:
if ext in dir[-3: