In Windows, sometimes I use an autoexec.bat file to render several yafray XML files in a row, during the night for instance.
My question is if there is an option for AUTOEXEC files to shut down the PC. In this way the computer can shut down itself when the renders are finished.
why are you using autoexec.bat instead of the runonce registry key or even the startup folder in the program files folder [for all users or your particular user]
hell, what version of windows are you running that you thought autoexec.bat was still a good idea?
… well anyway, PLEASE make your own batch file instead of messing with a system one [one batch file can call another, or you can run them like any program]
oh, and the shutdown command is only in windows xp or windows 2000, if you’re running 98 or ME there’s some ugly thing with rundll you can do to shutdown your computer.
It is a very old trick from an old veteran, I know. It is the best solution I come up with.
I execute the file in a MS DOS terminal windows in WIN XP.
The AUTOEXEC is in the scenes folder.
Many times I would like the PC to shut dow itself once the last render is finished (and saved) because I’m not at home or I’m sleeping.