first of all two infos.
1) About me: I now the most important dos commands and can handle batch files. I have already some data-backup batches by myself, but this one is too tricky for me. That is why I need your help.
2) About this script: I have a server (LAN not WAN) that has a folder with at least 1000 files. Those files are ray tracing files that should be rendered by other render-pcs in the LAN. I want to write a script, that searches for a file from the server. copies it to another folder and then renders it.
This is what exactly the script should do:
Code: Select all
if pvengin64.exe is running then do nothing ||checks if the pc is already rendering. if he does it should not start a new render.
else:
get the filename of the first (or any) file from "\\server\all files"
move that file from "\\server\all files" to "\\server\rendered files"
start c:\pvengine64.exe with the following paramters "/exit /render \\server\renderes files\filename" || the /exit command tells the programm to close after it has finished rendering
Bonus: I thought about starting the batch every 4 Minutes via windows task scheduler. The other option is to start it manually. But then there has to be included a loop in the batch itself.
Thank you very very much for your help!