I'm trying to get msg command to work like net send in visual basic within microsoft access. I'm getting the error 'msg' is not recognized as an internal or external command, operable program or batch file. When browsing within the cmd window that gets created in the script, I can't find msg.exe in c:\windows\system32. However, when I open up the command prompt from the run command I can find msg.exe in c:\windows\system32. I believe the issue has to do with environment or 64 bit OS.
The code that does the actual sending is below.
Set objShell = CreateObject("WScript.Shell")
objShell.Run ("cmd /k msg * /server:" & strComputer & " " & strMessage)