- UID
- 517
- 积分
- 935
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-14
- 最后登录
- 1970-1-1
|
发表于 2004-4-22 08:14:18
|
显示全部楼层
DOSLIB中有函數可多選文件
dos_getfilem
--------------------------------------------------------------------------------
Displays a resizable Windows common file open dialog box that allows for multiple file selection.
Syntax
(dos_getfilem title path filter)
Parameters
title
A string containing the dialog box title.
path
A string identifying an existing directory.
filter
A filename filter string. The filter string consists of two components: a description (for example, "Text Files"), and a filter pattern (for example, "*.TXT"). Multiple filter patterns can be specified for a single item by separating the filter-pattern strings with a semicolon (for example, "*.TXT;*.DOC;*.BAK"). The components must be separated by a pipe character ("|"). The filename filter string can consist of one or more filter strings, each separated by a pipe character ("|"). The entire string must be terminated with two pipe characters ("||").
Returns
A list of filenames if successful. The first element of the list is a qualified path to the selected directory.
nil on cancel or on error.
Examples
Command: (dos_getfilem "Select files" "c:\\program files\\autocad 2002\\sample\\" "Drawing files (*.dwg)|*.dwg||") |
|