I’m starting to learn now about batch file because I need to use it to gather some file path in windows to use with R, the trouble I’m having is
chcp 65001
@echo %~dp0% > root_path.txt
with the above code I can write a txt file with the location of the batch file, but I need to replace all “” in the path with “/”. How I can do it? I tried to do like
chcp 65001
@echo %~dp0:=/% > root_path.txt
but it doesn’t work, I tried to use set
and replace but not worked too.