'visual studio 2022 community and blat

I have used the Blat email line below in Studio 2017 and 2019 but it does not appear to work in Visual Studio 2022. Does anyone know what the issue is or suggest an alternative please?

Shell("C:\Windows\System32\blat.exe -body "" "" -attach ""spreadsheet"" -log C:\service\MailSend.log -debug -base64 -to ""[email protected]"" -subject ""report - " & Date.Now.AddDays(-1).ToString("ddMMyyyy")Blat email & """ -server [ipaddress] -f ""[email protected]""")

many thanks

Robert Bee



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source