title: Could I get the complete path with the variables of '__filename' on the Windows os?
body: <p>I've created a project, <code>vscode-extension</code>, but I'm having troubles while debugging. I have the the string of <code>/index.js</code> but not the complete path string like <code>c:/xx/xx/index.js</code> with the global variables of <code>__filename</code> or <code>__dirname</code>. How could I get the complete path in nodejs?</p>
  
  <p><a href="https://github.com/pikadun/npm-package-manage" rel="nofollow noreferrer">This is the project</a></p>
  
  <pre><code>OS:Windows 10
  Nodejs:v10.13.0
  vscode:1.33.1
  </code></pre>
  
  <pre><code>console.log(__filename); // /index.js
  console.log(__dirname); // /
  console.log(process.cwd()); // c:/User/wg/xxx/index.js
  </code></pre>
  
  <p>I expect get the complete path like</p>
  
  <pre><code>c:/User/wg/xxx/index.js
  </code></pre>