I'm trying to get my batch script to work and I'm running into an issue. The two lines I provided are where the issue is. What I'm doing is pulling information from two different text files, but I'm not sure how to code it to pull from both files on line 2 in their respective positions. So I need to pull %%n from name.txt and %%s from server.txt
FOR /F %%n IN (name.txt) DO PACLI STOREPASSWORDOBJECT SAFE="PACLI Test" FILE="%%n" PASSWORD="1234567890"
FOR /F %%s IN (server.txt) DO PACLI ADDFILECATEGORY SAFE="PACLI Test" FILE="%%n" CATEGORY="Address" VALUE="%%s"
Any help would be greatly appreciated, because I'm not a very good programmer.
Thanks
The Text files would look like this:
Name.txt:
- Unix_Test_Server_Root_01
- Unix_Test_Server_Root_02
Server.txt:
- SDCServerABC01
- SDCServerABC02