System.Diagnostics.Process.Start操作文件和文件夹(Unity3D)
来源:互联网 发布:微信群淘宝客有危险吗 编辑:程序博客网 时间:2024/06/05 18:45
最近在学习U3D,会写一些脚本工具,操作文件。
比如在unity中打开文本:
var logPath = Application.persistentDataPath+"/log";
var fileName = new DirectoryInfo(logPath).GetFiles().OrderBy(t=>t.LastWriteTime).Last().FullName;//取到文本路径
System.Diagnostics.Process.Start(fileName);//打开文本
也是可以打开网址System.Diagnostics.Process.Start(http://baidu.com);
比如在unity中打开文件夹
var logPath = Application.persistentDataPath + "/log";
System.Diagnostics.Process.Start("explorer.exe",logPath.Replace('/','\\'));//打开文件夹
0 0
- System.Diagnostics.Process.Start操作文件和文件夹(Unity3D)
- System.Diagnostics.Process.Start
- System.Diagnostics.Process.Start()
- System.Diagnostics.Process.Start(strFilePath)
- C# System.Diagnostics.Process.Start()
- c#调用exe文件:System.Diagnostics.Process.Start()的使用
- 使用System.Diagnostics.Process.Start()打开指定网址、文件、程序
- System.Diagnostics.Process.Start的用法(C#)
- System.Diagnostics.Process.Start的用法(C#)
- System.Diagnostics.Process.Start的妙用
- net中System.Diagnostics.Process.Start用法
- System.Diagnostics.Process.Start的妙用
- System.Diagnostics.Process.Start的妙用
- System.Diagnostics.Process.Start的妙用
- System.Diagnostics.Process.Start的妙用
- System.Diagnostics.Process.Start()的使用
- System.Diagnostics.Process.Start的妙用
- System.Diagnostics.Process.Start()用法详解
- Python处理JSON
- android 多线程(2)
- Java常用字符串操作 StringUtil 封装
- Android Activity.startActivity流程简介
- Android数据存储(二):SQLite存储
- System.Diagnostics.Process.Start操作文件和文件夹(Unity3D)
- HandLer的用法
- C++系统自动生成默认构造函数的情况
- 一个比较完整的CString类
- The Linux device model
- 第4篇 观察者模式
- ViewUtils
- 代码混淆
- Access denied for user 'root'@'localhost'