본문 바로가기

카테고리 없음

c# + 파이썬 연동

파이썬 pyinstaller로 exe 파일로 만들기

 

 

C#에서 커맨드라인 명령어 + 인수 쓰기

 

 public async Task Execute(IJobExecutionContext context)
    {
        //var command = "/C notepad.exe";
        var command = "/C C://Users//myjet//Desktop//test.exe 2022";
        Process.Start("cmd.exe", command);
        
        //await DownloadNcFileAsync();
        //System.Diagnostics.Process.Start("C:\\nc\\nc2\\dist\\sst\\sst.exe");
        _logger.LogInformation("해수표면온도 저장");
    }