@echo off cd /d %~dp0 if "%1"=="h" goto CmdBegin mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit :CmdBegin cd /d "C:/Users/86332/Desktop/createdpf/create_pdf" start "" /B "create_pdf.exe"