What I’m trying to do
So all I’m trying to do is turn one of the folders I have download from google drive which are docx file to markdown files which can use on obsidian. Its just .docx files but I think there are like 20-30 of them and I don’t want to do them one at a time.
Things I have tried
I have tried using pandoc to convert the folder with no success all I got was a folder with the name I set for it but no other files. I have no idea if I was doing anything correctly. I made a .bat file to try and convert the files.
All of the documentation that I have seen online if for single files not a for a folders with multiple files in them.
This is the .bat file I tried to make/run.
@echo off
set input_folder=“C:\Users\YourUsername\Documents\MyDocs”
set output_folder=“C:\Users\YourUsername\Documents\MyConvertedDocs”
mkdir %output_folder%
for %%f in (%input_folder%*.docx) do (
pandoc “%%f” -t markdown -o “%output_folder%%%~nf.md”
)
echo Conversion complete!
pause