1、判断文件是否存在

 StorageFolder folder = await ApplicationData.Current.LocalFolder.CreateFolderAsync("Books", CreationCollisionOption.OpenIfExists);  

                StorageFile stBook = null;
                try
                {
                      stBook = await folder.GetFileAsync(sbookName); 
                }
                catch
                {
                      stBook = null;
                }

 

 

2、

方便的键盘快捷键

Windows + H = 打开“分享”超级按钮

Windows + I = 打开“设置”超级按钮

Windows + K = 打开“设备”超级按钮

Windows + Q = 搜索应用

Windows + F = 搜索文件

Windows + W = 搜索Windows设置

Windows + X = 进入常用管理工具(或在左下角右键单击)

Windows + E = 在桌面环境下运行文件管理器

Windows + O = 锁定屏幕方向

Windows + R = 打开“运行”对话框

Windows + L = 锁定计算机

Windows + Print Screen = 保存屏幕截图至你的图片 > 截图文件夹

Windows + 1,2,3,4,5,6,7,8,9,0任意键 = 运行锁定至任务栏的对应程序

Ctrl + Shift + Esc = 打开任务管理器

相关文章:

  • 2021-07-01
  • 2022-12-23
  • 2021-04-09
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-11-27
相关资源
相似解决方案