积极答复者
win8 获取安装包文件目录问题

问题
答案
-
Hi,
得到的文件目录会被存到StorageFolder中,你可以通过GetFilesAsync()来取得所有文件的列表,GetFoldersAsync()可以取得文件夹列表,你可以参考API:
http://msdn.microsoft.com/en-us/library/windows/apps/br227230.aspx
不过终究是需要一个名字的。听你说的感觉更像是需要使用FilePicker:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465199.aspx
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 ben_Gof 2012年12月18日 10:06
全部回复
-
Hi,
安装目录的话:
Windows.Storage.StorageFolder installedLocation = Windows.ApplicationModel.Package.Current.InstalledLocation;
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Hi,
得到的文件目录会被存到StorageFolder中,你可以通过GetFilesAsync()来取得所有文件的列表,GetFoldersAsync()可以取得文件夹列表,你可以参考API:
http://msdn.microsoft.com/en-us/library/windows/apps/br227230.aspx
不过终究是需要一个名字的。听你说的感觉更像是需要使用FilePicker:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465199.aspx
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 ben_Gof 2012年12月18日 10:06