• 打开文件或者uri的方式--------进程启动文件和启动者启动文件


    The  Process class in  System.Diagnostics allows you to launch a new process.
    For security reasons, the  Process class is not available in the
    Metro profile, and you cannot start arbitrary processes. Instead,
    you must use the  Windows.System.Launcher class to “launch” a
    URI or file to which you have access, e.g.:
    Launcher.LaunchUriAsync (new Uri ("http://albahari.com"));
    var file = await KnownFolders.DocumentsLibrary.GetFileAsync ("foo.txt");
    Launcher.LaunchFileAsync (file);
    This opens the URI or file, using whatever program is associated
    with the URI scheme or file extension. Your program must be
    in the foreground for this to work.
    The static  Process.Start method has a number of overloads; the simplest accepts a
    simple filename with optional arguments:
    Process.Start ("notepad.exe");
    Process.Start ("notepad.exe", "e:\file.txt");
    You can also specify just a filename, and the registered program for its extension
    will be launched:
    Process.Start ("e:\file.txt");

  • 相关阅读:
    leetcode-滑动窗口
    leetcode刷题-双指针
    nlp
    机器学习
    tf-idf算法
    RNN和LSTM的理解
    DDD落地实践-战术实现心得
    DDD落地实践-战略设计心得
    测试平台系列(66) 数据驱动之基础Model
    Python小知识之对象的比较
  • 原文地址:https://www.cnblogs.com/1175429393wljblog/p/9253669.html
Copyright © 2020-2023  润新知