Process.Start(@"C:\WINNT\system32\xcopy d:\1 d:\2");这样有错吗.报警如下:
未处理的“System.ComponentModel.Win32Exception”类型的异常出现在 system.dll 中。其他信息: 系统找不到指定的文件。
未处理的“System.ComponentModel.Win32Exception”类型的异常出现在 system.dll 中。其他信息: 系统找不到指定的文件。
解决方案 »
- 两个int相除 得到的结果转化为百分比
- 怎么放到一个byte[]的buffer里面啊
- 在客户端怎么从服务器端下载txt文件呀 ?
- 求《Programming C# 》第四版
- 在webform 中如何获取confirm的按下窗口按扭是确定还是取消?
- 真诚求助,如何在水晶报表动态增加列.
- OracleConnection在open的时候抛出异常Attempted to read or write protected memory.
- 如何获取DataGrid中某行某列的数据
- 配置文件错误,请高手指点,在线等,急!!!
- 数据库问题!弄了一天了!不得不来这里请教!
- 谁帮忙把这段代码转成C#
- c#做windows程序时 怎样改变窗体标题栏样式呀??
http://blog.csdn.net/knight94/archive/2006/03/27/640153.aspx
string toDirectory = @"E:\AspNetWeb";
string[] files = Directory.GetFiles(fromDirectory);
if (files.Length > 0)
{
foreach (string s in files)
{
FileInfo objFI = new System.IO.FileInfo(s);
File.Copy(fromDirectory + "\\" + objFI.Name.ToString(), toDirectory + "\\" + objFI.Name.ToString());
}
}
错误 “string”并不包含“Text”的定义 怎么回事?