I am trying to run some commands in batch file on windows server 2012 but it's not working properly. What i am doing here. Get all files(.docx) from current directory in loop, convert file into pdf and move into other folder.
cls @ECHO ON for %%i in (*.docx) do soffice /-Y --headless --convert-to pdf %%i MOVE /-y C:\xxx\xxx\xxx\results\*.pdf "C:\xxx\xxx\xx-xx\results\pdf"
Can anyone help me about this what i am doing wrong?