3 Replies Latest reply on Nov 7, 2016 5:23 AM by try67

    Convert javascript path to windows path

    heresha93876846

      I have a string that contains a path that is formatted like this:

       

      /C/Users/heresh/Desktop/output/2016

       

      How can I convert this path to a windows path:

       

      C:\Users\heresh\Desktop\output\2016

       

      I know I should use:

      path.replace() but I cant get it to work