• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

.bat files not executing on Windows 10

General Discussion
2
2
1.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    A Former User
    last edited by Dec 27, 2017, 7:00 PM

    I am trying to use Trigger CMD to run .bat files on Windows 10. I have Trigger CMD installed. I have created several .bat files that do work properly when entered on a CMD prompt line. However, they do not run from Trigger CMD local or the website. The two commands that came with Trigger CMD, Calc and Notepad work just fine both locally and from the website. I do have the folder where my batch files are located in my PATH. Any ideas on what is wrong?

    R 1 Reply Last reply Dec 27, 2017, 11:11 PM Reply Quote 0
    • R
      Russ @A Former User
      last edited by Russ Dec 28, 2017, 3:49 AM Dec 27, 2017, 11:11 PM

      @ron

      Man, I don't know. If calc and notepad work, the agent is working, so that's a start. What exactly do you have in your command field? If you type that same thing in your cmd prompt while you're in a different folder, does it run the batch file? I ask just to verify that the folder is in the PATH..

      It might be that batch file is expecting you to be in the folder where the batch file is, so you could add a command to your batch file to cd to that folder.

      EDIT: Ron and I figured this out. It turned out he needed to close and open the TRIGGERcmd agent (or just reboot) after he added the batch file's folder to his PATH.

      Ron also explained how ahcmd works. It can send commands to X10 devices. It's a simpler way to do it than @Nate-Hales (aka Bubba's) method that uses the curl command. The ahcmd.exe tool comes with this installer: http://voxcommando.com/files/ahsdk_install.exe

      FYI, Ron's command to turn on a lamp via X10 was:

      ahcmd sendrf e1 on
      

      So with SmartThings, he could turn on parameters and make the command:

      ahcmd sendrf e1
      

      And SmartThings would add the on or off part of the command.

      More info about ahcmd: http://voxcommando.com/mediawiki/index.php?title=Plugin_X10

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post