Getting file size in desired units using - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
The objective of the sample project is to retrieve the size of any file selected by the user in any of the memory units selected by the user. The user is presented a form which has a command button called 'Choose File or Folder'. When he clicks this button, he is shown the browse for folder dialog from which he selects either a file or a folder name. On selecting the file/folder name, the full path of the selected file or folder is displayed in the textbox to the right of the button. Alternatively, the user can type the full path of the file/folder whose filesize he wants to know. On a valid selection of a file/folder name, the user chooses from a frame, the desired memory units in which he wishes to retrieve the file size and finally clicks the 'Get File Size' button. The user is shown the full path and the size of the selected file in desired units in a message box.
这个项目的目的是获取按户选定的内存单位显示的用户选择的文件的大小。提供了一个窗体,上面有一个标识为 'Choose File or Folder'的按钮。当点击这个按钮后,用户可以在一个对话框中选择一个文件或目录。在选择了文件/目录之后,其完整的路径名显示在按钮右边的文本框中。此外,用户也可以输入想要知道大小的文件或目录的完整路径。在有效选择了文件或目录后,用户还要选择想要检索文件大小的内存单位,最后点击'Get File Size'。程序会在一个消息窗口中为用户显示完整的路径和按所选单位计算的文件大小。
来源: http://visualbasic.ittoolbox.com/code/d.asp?d=1501&a=s |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
GetFileSize |
 1.0  |
2004-04-06 |
下载 |
|
|