美文网首页
Unity文件操作路径

Unity文件操作路径

作者: 玄策丶 | 来源:发表于2018-10-31 16:36 被阅读0次

    https://blog.csdn.net/linxinfa/article/details/51679528

    调用外部程序
    System.Diagnostics.Process.Start("notepad.exe"); -- 打开记事本
    System.Diagnostics.Process.Start("calc.exe "); -- 打开计算器
    System.Diagnostics.Process.Start("regedit.exe "); -- 打开注册表
    System.Diagnostics.Process.Start("mspaint.exe "); -- 打开画图板
    System.Diagnostics.Process.Start("write.exe "); -- 打开写字板
    System.Diagnostics.Process.Start("mplayer2.exe "); --打开播放器
    System.Diagnostics.Process.Start("taskmgr.exe "); --打开任务管理器
    System.Diagnostics.Process.Start("eventvwr.exe "); --打开事件查看器
    System.Diagnostics.Process.Start("winmsd.exe "); --打开系统信息
    System.Diagnostics.Process.Start("winver.exe "); --打开Windows版本信息
    System.Diagnostics.Process.Start("mailto: "+ address); -- 发邮件

    打开word文档

    #if UNITY_STANDALONE_WIN
                string _path = "file://" + Application.dataPath + @"/StreamingAssets/";
                System.Diagnostics.Process.Start("explorer", "/n, " + _path + "word" + ".doc");
    #endif
    

    相关文章

      网友评论

          本文标题:Unity文件操作路径

          本文链接:https://www.haomeiwen.com/subject/fziatqtx.html