如何在WP8仿真器或WP8设备中手动找到此路径。 [英] How can we find this path manually in WP8 Emulator or WP8 Device.

查看:63
本文介绍了如何在WP8仿真器或WP8设备中手动找到此路径。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生/女士,


我们如何在WP8仿真器或WP8设备中手动找到此路径。


我正在使用此代码;

 string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly()。GetName()。CodeBase); 
string filePath = System.IO.Path.Combine(appPath," xyz.jpg");

然后filePath显示此路径。
//file:\ C:\ Data \Programs\{CB75A62A-476D-45ED-89A6-9D62882BC2E9}\Install\xyz.jpg

和 

 string imageNamee = e.OriginalFileName.ToString(); 
imageNamee显示此路径。
// C:\ Data \Users\Public\Pictures\Camera Roll\WP_20131230_005.jpg


在上面两个代码中有什么是正确的代码。

如果,如何在WP8模拟器和WP8设备中手动找到此路径。 


和 


如何在我们自己创建的文件夹中将此文件名存储区存储在SD卡中,例如 


例如:SD Cards \10Min\WP8 \Images\imageName。 jpg。


请帮帮我


谢谢&问候,


SrinivaaS。

解决方案

您的第一个代码不正确。您必须使用
StorageFolder

StorageFile
,用于保存和查看文件夹中的文件。


http:/ /blogs.windows.com/windows_phone/b/wpdev/archive/2013/06/25/file-handling-with-windows-storage-apis.aspx



Dear Sir/Madam,

How can we find this path manually in WP8 Emulator or WP8 Device.

I am using this code;

 string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
                string filePath = System.IO.Path.Combine(appPath, "xyz.jpg");
              
Then filePath Display this path.  
                //file:\C:\Data\Programs\{CB75A62A-476D-45ED-89A6-9D62882BC2E9}\Install\xyz.jpg

and 

string imageNamee = e.OriginalFileName.ToString();
imageNamee Displays this path.
                //C:\Data\Users\Public\Pictures\Camera Roll\WP_20131230_005.jpg

With in above two codes what is the correct code.

If ,How can i find this path manually in WP8 Emulator and WP8 Device. 

And 

How can i store this file name store in SD Cards in our Own created Folder like 

Ex: SD Cards\10Min\WP8\Images\imageName.jpg.

Please help me

Thanks & Regards,

SrinivaaS.

解决方案

Your first code is not correct. You have to use functions in StorageFolder and StorageFile to save and view files in a folder.

http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/06/25/file-handling-with-windows-storage-apis.aspx


这篇关于如何在WP8仿真器或WP8设备中手动找到此路径。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆