If I understand, you did something in your batch and then you start PSPad with some file as parameter, right?
In this case modify your batch file to start PSPad when your file will be ready - add delay between your file generation and PSPad start You can use command START with /wait parameter for your file creation process or add delay before PSPad start. See possibilities: https://www.robvanderwoude.com/wait.php -- <https://forum.pspad.com/read.php?2,70872,70894> PSPad freeware editor https://www.pspad.com