c#中的一个问题在c#中 [英] one problem in xcopy in c#

查看:57
本文介绍了c#中的一个问题在c#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

这是我的代码:



ProcessStartInfo startInfo = new ProcessStartInfo();

startInfo.FileName =xcopy;

startInfo.Arguments = @D:\ MyFolder \\192.168.0.165 \ MyShareFolder / D / I / F / L;

Process.Start(startInfo);



我想通过此代码重新启动计算机,但我的项目无法运行。

谢谢

Hi all.
this is my Code :

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "xcopy";
startInfo.Arguments = @"D:\MyFolder \\192.168.0.165\MyShareFolder /D /I /F /L";
Process.Start(startInfo);

I want to restart computer by this code but my project can not be run .
thanks

推荐答案

我想重新启动电脑

你确定吗?谁告诉你你可以用xcopy命令重启计算机?那是胡说八道。
"I want to restart computer"
Are you sure? Who told you you could restart a computer with an xcopy command? That's nonsense.


请查看以下链接



关闭,重新启动,注销或使用C#锁定您的计算机


这篇关于c#中的一个问题在c#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆