Home AMX User Forum NetLinx Studio

.bat file

Can I run a .bat file with Netlinx? My goal is to have a popup window appear on the network admins computer if part of the AMX system goes offline. Anyone ever try running a .bat before?

Comments

  • jjamesjjames Posts: 2,908
    davidv wrote: »
    Can I run a .bat file with Netlinx? My goal is to have a popup window appear on the network admins computer if part of the AMX system goes offline. Anyone ever try running a .bat before?

    I wouldn't see why not. The easiest way in my opinion would be to use the iPCLinkPlus.dll in a .NET program ran on the PC, basically turning your PC in a Netlinx device. At which point, the master can send a command, or trigger a channel, the PC would see this, and then you'd write your C#, C++, VB code or whatever to trigger your .bat file.

    Simple as cake. ;)
  • davidvdavidv Posts: 90
    The command would be triggered by a contact closure. So do I need a PCI card that would work with the PCLINk? Do you have any code that you used with that PCLINK program?
  • jjamesjjames Posts: 2,908
    i!-PCLinkPlus (or i!-PCLinkXtra) is / was (you need to check with AMX) a free / purchasable (again, check with AMX) DLL (or OCX) that could be used when writing a Microsoft .Net program. So, the whole thing is written in your choice of language on the PC side (C#, C++, C+, Visual Basic, etc.) If you went this route, I'd suggest ditching the relay portion of the code as it'd be completely unnecessary.

    I don't have any examples on this computer, but again, it'd be in your language of choice on the PC side, and in NetLinx you'd treat it just like any other device (PULSE, SEND_COMMAND, etc.)
  • davidvdavidv Posts: 90
    .net code

    Microsoft Visual C# .NET Standard 2003 Full

    I was thinking about buying this product. It is only $30.00 and allows you to write in .NET. What do you use? Im trying to find a cheaper software solution. Visual Studio $700, C# $800
  • jjamesjjames Posts: 2,908
    Microsoft Visual Studio 2010 Express . . . free. Pick your poison. ;)
  • AMXJeffAMXJeff Posts: 450
    I hate to be the one that bring up the obvious solution. This is what RMS is for...
  • PhreaKPhreaK Posts: 966
    Or if you just want basic online/offline monitoring and don't want to fork out for a full RMS deployment SNMP.
Sign In or Register to comment.