请问怎样实行net命令? 试试 Process 类或者shellexecute外壳 API 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Process.Start("c:\windows\system32\net.exe", "use \\127.0.0.1\IPC$ '' /user:'admintitrators'")c:\windows\system32\net.exe也可以是c:\winnt\system32\net.exe ajex(仙桃人在珠海),你这个我试过,但就提示"无法识别的转义符号",怎么办呢? 字符串中的\\表示\再试试这样Process.Start("c:\windows\system32\net.exe", "use \\\\127.0.0.1\IPC$ '' /user:'admintitrators'") ajex(仙桃人在珠海),我是C#的,应该没什么区别吧? c#:Process.Start(@"c:\windows\system32\net.exe", @"use \\127.0.0.1\IPC$ '' /user:'admintitrators'") ocx 可以调用 xmlhttprequest 吗 主窗体失去焦点 求救~~~~~~~~~~ C#如何将datagride中的数据导入倒excel SQL语句模糊查找 求一自动生成流水号的C#代码! 方法名存在字符串中,怎么将此方法添加到菜单项事件中 请问如何利用C#更改文件夹名称? 刚刚学习delegate的一个简单问题 【新人求助】关于usb-can的通信 不好意思,"C#"英文怎么读? 简单问题...望各位帮忙...
再试试这样
Process.Start("c:\windows\system32\net.exe", "use \\\\127.0.0.1\IPC$ '' /user:'admintitrators'")
Process.Start(@"c:\windows\system32\net.exe", @"use \\127.0.0.1\IPC$ '' /user:'admintitrators'")