IWshRuntimeLibrary를 사용하여 C#으로 바로 가기를 만듭니다. 바로 가기 파일 이름은 힌디어 "नमस्ते"입니다.유니 코드 문자로 바로 가기 만들기
나는 shortcut.Save()
에 shortcutName = "नमस्ते.lnk"
WshShellClass wshShell = new WshShellClass();
IWshRuntimeLibrary.IWshShortcut shortcut;
shortcut = (IWshRuntimeLibrary.IWshShortcut)wshShell.CreateShortcut(destPath + "\\" + shortcutName);
shortcut.TargetPath = sourcePath;
shortcut.Save();
나는 다음과 같은 예외를 받고 있어요 곳, 바로 가기를 만들 다음 코드 내 싹둑를 사용하고 있습니다.
The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)
아니라 파일 시스템에서를 Shell32.dll을 참조하는 하나 명의 변경은 "심판 추가 ..."대화 상자의 COM 탭으로 이동하여 "마이크로 소프트 쉘 컨트롤 및 자동화라는 구성 요소를 선택 " – Naresh
아무런 차이가 없으므로 Browse 탭을 사용하면 파일을 더 쉽게 찾을 수 있습니다. –
하지만 COM 구성 요소를 추가하면 장치 독립적 인 것으로 생각됩니다. 모든 사용자가 c : \를 주 디스크로 사용할 수있는 것은 아닙니다. – Naresh