Jump to content

Notification System


Recommended Posts

Good Morning,

I am trying to build a notification system WITHOUT having to install third party software. I believe I am close but currently stuck. So i want to bring what i have done so you guys could help me out and maybe use it for your place of work if you find it interesting.

Why?:
Us programmers here have to program and also run the machines. Operators have to run the machines and work on mechanical inspections for other parts while the CMMs are running. It is easy to forget about the CMM when its done.

The goal:
To have the CMM trigger a batch file that will send a notification to a different computer on the network when the program ends automatically.

What i've got so far:
I created a batch file in the program's folder named "inspection_end"
Inside the batch file I have the following. "msg nuruchima /SERVER:"ComputerName" /time:99999 CMM DONE"
Now this works perfect when ran on my computer. It will send a notification/message to my computer. But the moment i try to send it to a different computer, it will not work UNLESS i run the batch file as administrator.
So if i were to run this batch file on the CMM, it wouldn't work unless i right click on the batch file and it as administrator but that requires to log in under administrator every single time and only i have that info. Defeats the purpose.

I did find another command "runas /savecred /profile /user:Administrator whateveryouwanttorun.cmd"
that lets you run it as administrator and saves the credentials, but i couldn't get it to work. So if anyone wants to give this a try and figure it out that would be nice. But i am currently stuck and burnt out.

Computers are in different rooms so having a sound play when the machines are done does not work either.
What are some of the things you guys do for notifications?
Link to comment
https://qualityforum.zeiss.com/topic/10902-notification-system/
Share on other sites

Please sign in to view this quote.

Installing or running external apps requires admin credentials. I was given a profile that has admin rights but only to install legit zeiss stuff. Anything else i would prefer to make it on my own because i would like to add this to multiple pcs so those people could also get the notifications.
Link to comment
https://qualityforum.zeiss.com/topic/10902-notification-system/#findComment-52940
Share on other sites

×
×
  • Create New...