每一行什么意思???

舞台中央的我 2008-10-14 04:54:45
Process p=new Process();
p.StartInfo.FileName="net.exe";
p.StartInfo.Arguments=" use "+NetUseArg;
p.StartInfo.UseShellExecute=false;
p.StartInfo.RedirectStandardOutput=true;
p.StartInfo.RedirectStandardInput=true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow=true;
...全文
192 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
shanying_0 2008-10-14
  • 打赏
  • 举报
回复
mark
popid 2008-10-14
  • 打赏
  • 举报
回复
1创建一个进程类的对象;
2将要启动的应用程序(进程)
3设置参数
fvflove 2008-10-14
  • 打赏
  • 举报
回复
[Quote=引用 18 楼 swalp 的回复:]
那个傻子是我同事。非得要我的分。就给他了
[/Quote]
只有引用的内容不允许回复!!
Annie_Cai 2008-10-14
  • 打赏
  • 举报
回复

Process p=new Process(); //创建进程对象
p.StartInfo.FileName="net.exe"; //设定需要执行的命令程序
p.StartInfo.Arguments=" use "+NetUseArg; 设定参数,要输入到命令程序的字符
p.StartInfo.UseShellExecute=false; //不使用系统外壳程序启动
p.StartInfo.RedirectStandardOutput=true; 重定向输出,而不是默认的显示在dos控制台上
p.StartInfo.RedirectStandardInput=true; //重定向输入
p.StartInfo.RedirectStandardError = true; //重定向錯誤輸出
p.StartInfo.CreateNoWindow=true; //不创建窗口
jardyson 2008-10-14
  • 打赏
  • 举报
回复
LZ是来T馆子的吧.这是一个类的实例和对该类填充信息..
Avoid 2008-10-14
  • 打赏
  • 举报
回复
net use
Avoid 2008-10-14
  • 打赏
  • 举报
回复
msdn

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧