Sorry Dan. I tried to summarize because my english isn’t very good.
I need a file .txt with a program path inside, like “C:\program path\blender.exe”. This path can be different on each computer. Mac or PC.
The first time, the user pick the Blender executable with UI.openpanel and creates a .txt to prevent the user repeat the task.
After this path.txt created, i need to read the content and to create a batch file in Temp folder with the content “C:\program path\blender.exe” -b -P “C:\path\to\file.py” and a VBS for a silent work.
Python file, VBS and Batch in Temp folder is fine, has already been created.
The first time, the whole system works fine. The second time no.
In this moment, when the path.txt is created, It have a line with the executable path and one second line empty. This line empty have a behavior like “press Enter” and runs Blender and the blender file isn’t created.
If i delete this line empty and save the file, Blender not run and a Blender file is created properly.