-2
.exe 파일의 바이트 단위로 내용을 프로그래밍 방식으로 C#을 통해 클립 보드로 복사하려고합니다..EXE 파일 내용을 클립 보드로 복사하는 방법은 무엇입니까?
.exe 파일의 바이트 단위로 내용을 프로그래밍 방식으로 C#을 통해 클립 보드로 복사하려고합니다..EXE 파일 내용을 클립 보드로 복사하는 방법은 무엇입니까?
이 시도 : 나는 클립 보드가 형식이 AFAIK 바이너리 데이터에 적합하지 않기 때문에 BASE64로 변환하고있어
// copying to the clipboard
var fileContent = File.ReadAllBytes("Path\\to\\exefile.exe");
Clipboard.SetData(DataFormats.Text, Convert.ToBase64String(fileContent));
// reading from the clipboard
var readBackFileContent = (string)Clipboard.GetData(DataFormats.Text);
File.WriteAllBytes("destination.exe", Convert.FromBase64String(readBackFileContent));
.
Google을 먼저 사용해 보셨습니까? – Freeman
예. 흠뻑. –
나는 정말로 당신이 말하는 것에 대해 단서가 없습니다. – Freeman