佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1145|回复: 1

有几个问题 VB 2010

[复制链接]
发表于 22-8-2010 12:35 AM | 显示全部楼层 |阅读模式
请问一下,一下几个要怎么写??谢谢

1.如果我已经有select一个directory的address了,
我要怎样才可以get the information from the directory(name ,type, size)(folders and subfolders,and files inside)?

2.如何把已经得到的files list 放进as listview,how to separate the file name, type and size(column).

3.how to save the entire data in the listview into a database(connected already),
and how to save the data in database accordingly (by drive name)
回复

使用道具 举报


ADVERTISEMENT

发表于 28-10-2010 11:36 PM | 显示全部楼层
这在google应该不难找到吧,多花一些时间就可以了。

3个问题都可以用loop完成。 假设 C:\temp\ 有3个file,就loop 3次,可以将所有的data都store在variable,如果你要多过一个的,用array就比较简单处理了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 17-11-2025 06:34 PM , Processed in 0.151313 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表