0
내가 파일을 복사하려면이 코드를 사용하지만 지름길을 할 수없는 특별한 folder.I에 다른 응용 프로그램의 바로 가기를 복사 할 수 있습니다 C#을 가진 윈도우의 양식 응용 프로그램을 만들려고 노력하고있어 ...C#에서 다른 앱의 앱에 대한 바로 가기를 만드는 방법은 무엇입니까?
system.io.file.copy("what","where");
I 이 사용하지만 작동하지 않습니다.
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(".\\calc.exe");
string destination = @"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\Startup";
System.IO.FileInfo[] files = dir.GetFiles("*.exe");
foreach (var shorcut in files)
{
System.IO.File.Move(shorcut.FullName, destination);
}
가장 쉬운 방법은 무엇입니까?