Push Message to Multiple Devices in One Batch File

Bill Norris

Active Member
Licensed User
Longtime User
Am wondering about a batch file to send push message to multiple devices. Have tried

B4X:
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

B4X:
b4a_c2dm.bat send device1 "GET_FILE"
b4a_c2dm.bat send device2 "GET_FILE"
b4a_c2dm.bat send device2 "GET_FILE"

Any suggestions??
 

Bill Norris

Active Member
Licensed User
Longtime User
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

Bill Norris

Active Member
Licensed User
Longtime User
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

Bill Norris

Active Member
Licensed User
Longtime User
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
Top