摘要:第一种: //if (this.listView1.FocusedItem != null) //{ // if (this.listView1.SelectedItems != null) // { // foreach (ListViewItem item in this.listView1.S 阅读全文
C#实现获取当前文件路径的上级路径
2018-08-29 16:40 by dapeng17951, 2435 阅读, 0 推荐, 收藏, 编辑
摘要:界面: 声明: textBox1.Text为指定文件路径:string path = @"F:\ABB-pragram\ABB工作站\ABB Station\Systems\SituationalTeaching_Carry\HOME"; textBox2.Text为得到的该指定文件路径的上级路径( 阅读全文