Jump to content

Notification System


---
 Share

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
Share on other sites

Please sign in to view this quote.

I did look at that. Only issue with that one is that they require the email server info from IT. It would be hard getting this info from IT since our IT guy is also the director.
Link to comment
Share on other sites

If you can install - or run external apps ( without knowning source code ), then i can make you a windows program of your needs.

Just describe features. But it will still run from batch file you created and it will be console app.
Link to comment
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
Share on other sites

Only apps, which are revoking admin rights need to be run at admin. Others can be run as user. But it would be needed to allow some ports at firewall for intranet.

I can make such program in Delphi, but i strugle with C++/#
Maybe LUA can do something.
Link to comment
Share on other sites

this is a shot in the dark, but try starting Calypso with "run as administrator" and see if it would still need admin credential when Calypso executes inspection_end.bat file
Link to comment
Share on other sites

 Share

×
×
  • Create New...