prosound export always return false

Hi everyone

I'm trying to export audio to "avi" file

---------
prosound.export "d:\file.avi" 0 50
---------

but the function always return false while exporting from prosound ui works on the same file without any problem

am I doing anything wrong?