Replace \\isla\tokens with the location of your token files and java components from RSA.
Replace labes1 with your BES server name.
@echo off
cls
rem %1 = email address or pin
rem %2 = userid (name embedded in token file name)
if !%1==! goto missing
if !%2==! goto missing
if not exist \\isla\tokens\x-rimdevice-%2.sdtid goto notoken
java -classpath \\isla\tokens\PushToken.jar PushToken -e%1 -hlabes1 x-rimdevice-%2.sdtid
goto end
:missing
cls
echo One or more parameters are missing
echo syntax tokenpush [email addr or pin] [userid]
echo Note: Email Addr must be same as BES account
echo .
goto end
:notoken
cls
echo Token file x-rimdevice-%2.sdtid not found
echo Please place token file in \\isla\tokens
:end
|