>> pgagent tries to execute 1_1.bat file !
>
> That's normal - the script you enter in pgAdmin is written to the
> temporary batch file at runtime and executed. That's required to allow
> you to target scripts at any agent host.
>
> So anyway, does C:\DOCUME~1\postgres\LOCAL~1\Temp\pgaD591.tmp\1_1.bat
> exist, and if so what's in it?
This directory does not exist.
Only C:\DOCUME~1\postgres\LOCAL~1\Temp directory exists.
I verified, user postgres has Full Control rights to C:\DOCUME~1\postgres
directory.
Andrus.