c:\Users\yufukushima\.vscode\workspace>latexmk -pdfdvi -latex=platex report.tex Initial Win CP for (console input, console output, system): (CP932, CP932, CP932) I changed them all to CP932 Latexmk: I have found a DIRECTORY named "C:/Users/yufukushima/.latexmkrc". Have you perhaps misunderstood latexmk's documentation? This name is normally used for a latexmk configuration (rc) file, and in that case it should be a regular text file, not a directory. Rc files read: .latexmkrc Latexmk: This is Latexmk, John Collins, 4 Apr. 2023. Version 4.80. Latexmk: Nothing to do for 'report.tex'. Latexmk: All targets (report.pdf) are up-to-date Collected error summary (may duplicate other messages): dvipdf: gave an error in previous invocation of latexmk. Latexmk: If appropriate, the -f option can be used to get latexmk to try to force complete processing. C:\texlive\2023\bin\windows\runscript.tlu:921: command failed with exit code 12: perl.exe c:\texlive\2023\texmf-dist\scripts\latexmk\latexmk.pl -pdfdvi -latex=platex report.tex