Windows Batch File - Clearing another batch file -
Windows Batch File - Clearing another batch file -
quick explanation:
i have batch file converting series of swfs mp4s placed batch file via php fwrite. ran every hr on windows task scheduler. example:
c: cd "path\moyea\swf video sdk" swf2videocmd "conversion_command_here" cd "path\mysql\bin" mysql --host=hostip --user=user_name --password=hostpw--database=database_name --table=table --execute="update table set processed=1 processid=44;"
this works fine, updates sql , runs process. there can many conversions in 1 batch file necessary, they're added dynamically on demand. windows task scheduler runs batch fine aswell.
i have secondary batch file task scheduler runs @ same time - clear.bat. clears first 1 conversion job can start afresh new files next time:
d: cd "path\youtube\" nul > swf2mp4.bat
it clears first batch file fine, returns prompt saying windows cannot access specified device, path or file.
in windows task scheduler, can't close prompt task gets stuck running, meaning next instance of task (hourly) can't run. create automatically close each hour, conversion queue may large. need supress error.
replace
nul > swf2mp4.bat
with
type nul > swf2mp4.bat
and should work fine.
windows batch-file task clear scheduler
Comments
Post a Comment