>>The RDP connection must be set to play computer sounds.
>>
>>There may be other factors, of course.
>
>Running .BAT file with contents
>
>
COPY ..\algus\chr7.txt CON
>timeout 2
>
>using RUN command plays windows sound but shows blank console window.
>How to hide console window?
Use api_apprun from process.vcx - it's 24 years old and it still works. Download from
https://www.levelextreme.com/Home/ShowHeader?Activator=17&ID=9477 - it's the best wrapper for shellexecute() so far, praise be to late Ed Rauh. One of the parameters when running it is the window type, can be NOR, MAX or HID - I love the third option.