本帖最后由 gdslqs 于 2013-12-13 10:08 编辑
 - (defun c:tt( / file path wssh)
- (setq file "D:\\A\\c.txt")
- (setq path "D:\\B")
- (vl-load-com)
- (if (setq wssh (vlax-get-or-create-object "WScript.Shell"))
- (progn
- (vlax-invoke-method wssh 'Run (strcat "cmd.exe /c md " path) 0 :vlax-true)
- (vlax-invoke-method wssh 'Run (strcat "cmd.exe /c copy " File " " path) 0 :vlax-true)
- (vlax-release-object wssh)
- );_progn
- (alert "")
- );_if
- )
|