I tried several things on windows with emacs. In my case, I need to return the path to the backslash file from elisp. But elisp always returns a slash path, etc.
(expand-file-name "text.log" "d:\\ProgramData\\temp") => d:/ProgramData/temp/text.log
My requirement:
(expand-file-name "text.log" "d:\\ProgramData\\temp") => d:\ProgramData\temp\text.log
This can be done with a regex, but I need a simpler way.
source share