title: How to pass two parameters to node.js file via querystring?
body: <p>Consider the below code:</p>
  
  <pre><code>// upload.js
  var fs = require('fs')
  var newPath = "E:\\newPath";
  var oldPath = "D:\\oldPath";
  
  exports.uploadFile = function (req, res) {
  fs.readFile(oldPath, function(err, data) {
      fs.writeFile(newPath, data, function(err) {
          fs.unlink(oldPath, function(){
              if(err) throw err;
              res.send("File uploaded to: " + newPath);
          });
      });
  });
  };
  
  // app.js
  var express = require('express'), // fetch express js library
  upload = require('./upload'); // fetch upload.js you have just written
  
  var app = express();
  app.get('/upload', upload.uploadFile); 
  
  app.listen(3000);
  </code></pre>
  
  <p>In the above code, I need to assign the new path dynamically by passing two parameters as query string such as </p>
  
  <pre><code>1. Drive and 2. Folder name.
  </code></pre>
  
  <p>How to give the query string in code file and how to run the program to achieve the GET request?</p>