Extract first character from a string
<p>I've no knowledge regarding Windows batch programming syntax. I have a text file containing user IDs which I need to delete using curl command and for that I need to extract first character of every user ID and then pass to the curl command. I know the curl command which will require two variables:</p>

<ol>
<li>'UserID' - Read from the text file.</li>
<li>'firstCharacter' - Extracting first character from the User ID.</li>
</ol>

<p>Below is the code to fetch user IDs from users.txt file:<br><br></p>

<pre><code>@echo off
for /f "tokens=*" %%a in (symantecUsers.txt) do call :processline %%a
pause
goto :eof
:processline
echo %*
goto :eof
:eof
</code></pre>

<p>Please help me with extracting the first character from the read User IDs.
Thanks.</p>