I try to export all of my wiki into .docx file using pandoc. So I have created a .bat script. I have a file containing all of my url I want to export "liste_de_documents.txt" containing one string per line like :
hadoop:hadoop_-_hdfs_-_afficher_les_fichiers_avec_un_replica_inferieur_a_3
certificats:certificats_-_faq
I have this variable :
set "url=http://localhost:8800/doku.php?id="
I try to export my documentation and I need to do the concatenation of thoses 2 variables, but I always get an empry variable %downloadurl% as result :
setlocal enabledelayedexpansion
for /F "tokens=*" %%A in (liste_de_documents.txt) do (
set downloadurl="%url%%%A"
ECHO %url%
ECHO %%A
ECHO %downloadurl%
::C:\Z_owncloud\Logiciels_portables\Logiciels_portables_installes\pandoc-2.3-windows-x86_64\pandoc.exe -f html "%url%%%A" -o "C:\Users\user\Downloads\EXPORT_AUTOMATIQUE_DE_LA_DOC_DU_WIKI\%downloadurl%.docx"
)
How can I do the contatenation of my variable %url% and %%A into %downloadurl% please ?
Regards,
A.