Batch file run from task schedule
Posted: 2015-11-19T00:52:33-07:00
I have this batch file:
if i run the batch from command line the move works and the convert as well
if i run it from the schedule task (as administrator) only the move works but not the 2 convert line
what can be done?
Code: Select all
@echo off
--trust-model always
for %%f in (C:\inetpub\folder\images\*) do (
echo %%f
convert %%f -resize 200 C:\inetpub\wwwroot\folder\gallery\%%~nf_big%%~xf
convert %%f -resize 100 C:\inetpub\wwwroot\folder\gallery\%%~nf_small%%~xf
move %%f C:\inetpub\wwwroot\folder\gallery\
)
if i run it from the schedule task (as administrator) only the move works but not the 2 convert line
what can be done?