马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - (defun _GetSpecialFolder ( int / fso fob res )
- (vl-catch-all-apply
- '(lambda nil
- (setq fso (vlax-create-object "Scripting.FileSystemObject")
- fob (vlax-invoke-method fso 'getspecialfolder int)
- res (vlax-get-property fob 'path)
- )
- )
- )
- (if fob (vlax-release-object fob))
- (if fso (vlax-release-object fso))
- res
- )
命令: (_GETSPECIALFOLDER 1)
"C:\\Windows\\System32"
命令: (_GETSPECIALFOLDER 2)
"C:\\Users\\DSJFWZ~1\\AppData\\Local\\Temp"
目录路径详见:
Reference
ArgumentsSettingsThe folderspec argument can have any of the following values: SETTINGS
The Windows folder contains files installed by the Windows operating system.
The System folder contains libraries, fonts, and device drivers.
The Temp folder is used to store temporary files. Its path is found in the TMP environment
|