I have a
js file which runs node server code. ( via
Ok - So now the server is up and listening at
However , I have a left pane of explorer tree :
- Take the current file name
- Calc its relative location to
c:\program Files (x86)\nodejs\public folder
chrome.exe "http://localhost:3030/" + "/angularjs-book-master/chapter2/amail/index.html"
So , I want to run this :
NPP_RUN chrome.exe http://localhost:3030/(current file relative to nodejspublic
Notice : I want to run it as a url.
So in my example I want :
NPP_RUN chrome.exe http://localhost:3030/angularjs-book-master/chapter2/amail/index.html
index.html is the current displayed file.
But the problem is that I don't have merely
I have the full value which is
$(FILE_NAME) which is
And I don't need this whole string. A solution which will cut
file:///C:/Program%20Files%20(x86)/nodejs/public/ from it would also be fine.
Also the slashed should be backwards.
so in short :
NPP_RUN "chrome.exe" $(FILE_NAME)
But this runs :
But I want only this : (notice slashes)