title: What's the correct way to specify file path in VBscript?
body: <p>New to VBscript and spending way too much time trying to find the right way to open a file for reading. Whatever I've tried I always get "Path not found" error.</p>
  
  <p>This is the real path to my files:
  D:\InetPub\vhosts\lamardesigngroup.com\httpdocs\</p>
  
  <p>The file that I am trying to run is:
  D:\InetPub\vhosts\lamardesigngroup.com\httpdocs\ifp\files.asp</p>
  
  <p>and I want to read this file:
  D:\InetPub\vhosts\lamardesigngroup.com\httpdocs\ifp\css\style.css</p>
  
  <p>Here is the code:</p>
  
  <pre><code>Dim objFSO, strTextFile, strData, strLine, arrLines
  CONST ForReading = 1
  
  'name of the text file
  strTextFile = "//css/style.css"
  
  'Create a File System Object
  Set objFSO = CreateObject("Scripting.FileSystemObject")
  
  'Open the text file - strData now contains the whole file
  strData = objFSO.OpenTextFile(strTextFile,ForReading).ReadAll
  
  'Split the text file into lines
  arrLines = Split(strData,vbCrLf)
  
  'Step through the lines
  For Each strLine in arrLines
      response.write(strLine &amp; "&lt;br&gt;")
  Next
  
  'Cleanup
  Set objFSO = Nothing
  </code></pre>
  
  <p>and I get "12|800a004c|Path_not_found 80"</p>
  
  <p>I've also tried </p>
  
  <pre><code>strTextFile = "D:\InetPub\vhosts\lamardesigngroup.com\httpdocs\ifp\css\style.css"
  
  ' and 
  strTextFile = "\\css\style.css"
  strTextFile = "css\style.css"
  strTextFile = "css/style.css"
  
  ' and many other combinations
  </code></pre>
  
  <p>I'm obviously lost...</p>