本帖最后由 bailong360 于 2016-7-28 20:49 编辑
- (while t
- (dolist (key '("李霞" "陈丽"))
- (dolist (filename (directory-files "c:\\our" nil key))
- (let (fullname (concat "c:\\out" filename))
- (copy-file fullname (concat "d:\\" key) t)
- (delete-file fullname)))
- (sleep-for 5)))
复制代码 elisp练手
====2017.7.28 20:49=====- (while t
- (dolist (key '("MCUpass" "MCUfail"))
- (dolist (filename (directory-files "c:\\logfile" nil key))
- (let (fullname (concat "c:\\logfile" filename))
- (copy-file fullname (concat "d:\\" key) t)
- (when (equal key "MCUpass")
- (copy-file fullname (concat "\\\\server\\logfile")))
- (delete-file fullname)))
- (sleep-for 5)))
复制代码 LZ我只是来练手的...... |