On occasion I've noticed some of my batch files didn't fire! :(
Possibly a bug in AHP 3.2.0.6? ??? ::)
Even trying to manually trigger the batch file from inside AHP fails! :( ???
A fix:
Edit the Macro, redo the path for the Batch file and save the macro
Of coarse I found this was only temporary! ::) :(
A better Solution:
Convert Batch files to EXE files
The freeware program I used : Bat-To Exe_Converter from F2KO (http://www.f2ko.de/English/b2e/download.php)
So far no issues with exe files not firing ::) ;) (time will tell if this is truly the permanent solution!)
No guarantee that this will work for everyone or for all batch files but hopefully this will be found helpful for a few users! ;) ;D >:(
The Best solution:
X10 gets a new version out with all the bugs users have reported fixed! ;) :D ;D
Don't hold your breath for this one to happen any time soon folks! :( ::)
Hum I hadn't noticed this with my exe files ::) But just did >:( >:( ::)! So much for that Work around!
Seen this too. Even occurs for me with "EXE" files unfortunately. >:( :(
I find that anytime I close AHP and restart it, that I have to re-do the path in the macro.
Weird thing is, I only have to do it for one macro and then all macros execute their files again.Ya noticed that too! ::) ???
Thinking it was only batch file execution that was failing resulted in my original post which no doubt gained me some Unhelpful ratings ::) :(
@echo off
cd C:\Program Files\X10WavPlayer
X10WavPlayer "Please be advised that the garage door is opening. Repeat, the garage door is opening. Thank you." 0
You might be able to force the file location by fixing the underlying problem, or by scripting that change before opening AHP.The file location isn't the issue AHP will open any file in any location the first time you set up the macro.
@ echo off
CD..
PcCompanion ">Time?<" 0
After the edit:@ echo off
Cd C:\Program Files (x86)\PcCompanion
PcCompanion ">Time?<" 0
Hope this helps anyone that is still having issues!To make sure I understand this:Yes.
The batch file you were using (and the batch file complied to EXE, also) had a relative path in it, that was based on the location of the batch file.
Since AHP was executing the batch file from a different "working directory," the batch file itself would run, but since the first command was to change to a relative path that didn't exist in relation to the working directory, the rest of it didn't work?But in AHP you specify where the batch file or program(exe) is, you could have it in the root folder or anywhere.
So it wasn't really an AHP problem then, right?Yes it was a AHP issue.This issue even applied to opening a program like internet explorer not using a batch file.
moving the batch file a different folder and running it from there (from a command prompt) would have also failed, right?using the example of the batch file I posted Yes it would have fail placing it anywere else.
Does putting in an absolute path work EVERY TIME?yep, it does now! ;)
Finally thanks to the newest batch of programmers at X10 this is Fixed!What did the programmers do? Just recently? I have 3.236. Will it take an upgrade? My window's command line usage is hit or miss.
EXE files fire every time as do Batch files.
However you need to specify the full path to the program in the batch file even if it is in the same folder as the program your trying to start.
So if you use Batch files included in PcCompanion you need to edit the files and replace the CD.. with the full path to PcCompanion
Here is an example of my the "Time(0)".bat file before and after the edits
Before:Code: [Select]@ echo off
CD..
PcCompanion ">Time?<" 0
After the edit:Code: [Select]@ echo off
Hope this helps anyone that is still having issues!
Cd C:\Program Files (x86)\PcCompanion
PcCompanion ">Time?<" 0
>!
Plus one more item:Or update AHP! ;)
On the task bar, where AHP resides, I get a "Featured Option loaded" notification.
Guess I'll have to use AHP shortcut and not Hotkeys.
I don't know the exact operation,i.e. download whole program or just update, but when I loaded AHP before it took over 4 hours to download. I'm not particularly looking forward to that again.Plus one more item:Or update AHP! ;)
On the task bar, where AHP resides, I get a "Featured Option loaded" notification.
Guess I'll have to use AHP shortcut and not Hotkeys.
Are you On Dial up?
Get a program like Getright!
A download manager will help alot!
>!