Unity文件操作路径

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文件操作路径)