B Bill Norris Active Member Licensed User Longtime User Aug 11, 2012 #1 Am wondering about a batch file to send push message to multiple devices. Have tried Code: Copy b4a_c2dm.bat send device1 device2 device3 "GET_FILE" Doesn't work Have tried separating device names with comma, doesn't work Have tried the following, putting all three lines in one batch file - doesn't work - only sends the message to device1 Code: Copy b4a_c2dm.bat send device1 "GET_FILE" b4a_c2dm.bat send device2 "GET_FILE" b4a_c2dm.bat send device2 "GET_FILE" Any suggestions??
Am wondering about a batch file to send push message to multiple devices. Have tried Code: Copy b4a_c2dm.bat send device1 device2 device3 "GET_FILE" Doesn't work Have tried separating device names with comma, doesn't work Have tried the following, putting all three lines in one batch file - doesn't work - only sends the message to device1 Code: Copy b4a_c2dm.bat send device1 "GET_FILE" b4a_c2dm.bat send device2 "GET_FILE" b4a_c2dm.bat send device2 "GET_FILE" Any suggestions??
Erel B4X founder Staff member Licensed User Longtime User Aug 11, 2012 #2 Your second solution should work. Do you get any error message? Upvote 0
B Bill Norris Active Member Licensed User Longtime User Aug 11, 2012 #3 re: No error msg that I can see -- the batch file window disappears pretty quickly. Only the device in the first line gets the message. Upvote 0
re: No error msg that I can see -- the batch file window disappears pretty quickly. Only the device in the first line gets the message.
Erel B4X founder Staff member Licensed User Longtime User Aug 11, 2012 #4 Add a pause statement at the end of the batch file. Upvote 0
B Bill Norris Active Member Licensed User Longtime User Aug 12, 2012 #5 RE: Instead of just dbl-clicking the bat file in windows explorer, I opened command prompt and went to folder with bat file so the cmd window doesn't close after execution. The first line executes and returns a success code and that's it. Does not appear to even attempt to execute remaining lines. No errors. Upvote 0
RE: Instead of just dbl-clicking the bat file in windows explorer, I opened command prompt and went to folder with bat file so the cmd window doesn't close after execution. The first line executes and returns a success code and that's it. Does not appear to even attempt to execute remaining lines. No errors.
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2012 #6 Apparently both of us are not experts with Windows batch files. You should use the Call keyword to start another batch file: Batch files - CALL Another option is to copy the single line from b4a_c2dm.bat into your batch file. Upvote 0
Apparently both of us are not experts with Windows batch files. You should use the Call keyword to start another batch file: Batch files - CALL Another option is to copy the single line from b4a_c2dm.bat into your batch file.
B Bill Norris Active Member Licensed User Longtime User Aug 13, 2012 #7 RE: Aha... I will give that a try. Upvote 0
B Bill Norris Active Member Licensed User Longtime User Aug 14, 2012 #8 RE: I ended up using option 2 as I'm not really up on the % sign uses that are included in the CALL link you provided. Option 2 works fine. Thanks Upvote 0
RE: I ended up using option 2 as I'm not really up on the % sign uses that are included in the CALL link you provided. Option 2 works fine. Thanks