cancel
Showing results for 
Search instead for 
Did you mean: 

Executing nbmail.cmd on Windows 2008 R2 generate error

MohdAlim
Level 5
Partner

Hi,

I tested blat functionality on Windows 2008 R2 with the following:

1) blat c:\test.txt –s VCB_backup –to xxx@com (able to send email successfully)

2) execute the nbmail.cmd but got the following errors:

Blat found fault with: -s

-subject <subj> : subject line, surround with quotes to include spaces(also -s)

 My syntax in the cmd file are shown below:

@IF "%~4"=="" (

blat %3 -s %2 -t %1 -i NetBackup -server <PSD mail> -q

) ELSE (

blat %3 -s %2 -t %1 -i NetBackup -server <PSD mail>  -q -attach %4

)

 Are there anything that needs to be modified for nbmail.cmd to work in Windows 2008?

Thanks.

 

 

1 REPLY 1

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

Can you try below?

@IF "%~4"=="" (

blat %3 -s "%2" -t %1 -i NetBackup -server <PSD mail> -q

) ELSE (

blat %3 -s "%2" -t %1 -i NetBackup -server <PSD mail>  -q -attach %4

)