title: VBScript to read specific line and extract characters and store it as a variable
body: <p>I have a VB script that reads the 11th line from a text file. However from that line I need to extract characters 48 through 53 and save it as a variable. After this is accomplished I would like to use that variable and use it in a web url. Example below:</p>
  
  <p>Contents of the szCPUSer.dat file look like this:
  <img src="https://i.stack.imgur.com/7EjHc.png" alt="szCPUSer.dat"></p>
  
  <p>The script I have reads the 10th line </p>
  
  <pre><code>Const ForReading = 1
  
  Set objFSO = CreateObject("Scripting.FileSystemObject")
  Set objTextFile = objFSO.OpenTextFile("szCPUSer.dat", ForReading)
  
  For i = 1 to 10
      objTextFile.ReadLine
  Next
  
  strLine = objTextFile.ReadLine
  Wscript.Echo strLine
  
  objTextFile.Close
  </code></pre>
  
  <p>I need the script to extract 03187 from the 11th line than store it as a variable SerNum. after this I would like to use that number extracted in a url for example:</p>
  
  <p><a href="http://seriallookup.com/serial=SerNum" rel="nofollow noreferrer">http://seriallookup.com/serial=SerNum</a></p>