RSA SecurID Software Token Converter

Posted on 2013-05-14
Last Modified: 2013-05-31

We are using RSA SecurID Software Token in our Organization to secure the connection to our system from outside the Network.

after some configuration on the Console there is a command have to be run on the CMD to generate the link

this is the Command

C:\path_name\TokenConverter user2-passwordtoken.sdtid -p t0kenpw1 -iphone -o

Open in new window

The problem when i am going to create 20 soft token it a headache can i put the last command in a script and the script take any file with the extension .sdtid and generate the link and put it on txt file with the same name of the .sdtid file.
and the script should check all .sdtid files and converted to .txt files with the same name of the .sdtid files.

Question by:fadyaz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 13

Expert Comment

ID: 39164671
I believe that you need something like this
@echo off
FOR /F "tokens=1 delims=," %%a IN (list.txt) DO  CALL :Sub_createtoken %%a  %%1
start "C:\path_name\TokenConverter user2-%2.sdtid -p t0kenpw1 -iphone -o %1.txt"

Open in new window

you call your batch file with a file parameter and have a list.txt with every new line will be the output txt file with a comma on the end of the line.
i hope that helps

Author Comment

ID: 39166414
Thanks for your reply your code is perfect but the problem with this variable user2-%2.sdtid i need it to take the files with extension autmatically vecuase the name will be with the users username .

LVL 13

Accepted Solution

stergium earned 500 total points
ID: 39167246
I did not understand what you needed.
this should work.
@echo off
dir *.sdtid  /b > list.txt
FOR /F "tokens=1 delims=" %%a IN (list.txt) DO  CALL :Sub_createtoken %%a  
SET X=%1
set x=%x:~0,6%
start  "C:\path_name\TokenConverter user2-%1 -p t0kenpw1 -iphone -o %X%.txt"

Open in new window

it will create a list.txt file with the contents of the folder (*.sdtid files)  and for everyfile will run the command and finally creating the txt file using the filename of the sdtid original file.

Author Comment

ID: 39167296
Thanks for your help Your Code create a list.txt and include all sdtid file name in it .

I didn't need this, exactly our scenario is after generate the sdtid file from the system in example fadyaz.sdtid

i should run this command for each sdtid

TokenConverter.exe fady.sdtid -p 1234 -android -o fadyaz.txt

i didn't need to run this command every time for every file.

i want to make a batch file to check the sdtid files in the same folder and run the converter for each one and make the output in the txt file with the same name of sdtid file.


Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question