摘要:
System.Environment.CurrentDirectory和System.AppDomain.CurrentDomain.BaseDirectory在Unity中有效,其他未测。 //获取当前进程的完整路径,包含文件名(进程名)。 string str = this.GetType(). 阅读全文
posted @ 2018-09-17 16:08
凌落成迷
阅读(4323)
评论(0)
推荐(0)
摘要:
启动外部程序时:直接使用Process.Start();来启动外部程序,参数(需要启动的外部程序所在文件位置) 关闭外部程序时:使用 process.Kill();来关闭外部程序 private string exePath; void Start() { exePath = @"C:\Window 阅读全文
posted @ 2018-09-17 14:51
凌落成迷
阅读(2064)
评论(0)
推荐(0)
摘要:
private void Window_Loaded(object sender, RoutedEventArgs e) { // 设置全屏 this.WindowState = System.Windows.WindowState.Normal; this.WindowStyle = System 阅读全文
posted @ 2018-09-17 14:49
凌落成迷
阅读(3264)
评论(0)
推荐(0)
浙公网安备 33010602011771号