gpg to decrypt a file giving the passphrase - PGP

This is a discussion on gpg to decrypt a file giving the passphrase - PGP ; I need to schedule a process to decrypt a file .pgp using gpg
if I type
>gpg --passphrase=12345.... --output d:\test.txt --decrypt D:\file.pgp
I get
>gpg: failed to translate osfhandle 7FFFFFFF
What can I type to decrypt the file successfully ?
...