Bonjour,

Je suis plutôt novice en batch. Voici un script pour tenter de télécharger des fichiers, mais j'ai un soucis de manipulation de variables :
Code Batch : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
for %%f in (Tabldent.tab Fdprot.tab Table4.tab Table2t.tab Table7.tab Table12.tab Tabl11_1.tab Table1b.tab Plafonds.tab Historique.tab) do (
	if exist %%f (
		del %%f
	)
	echo Telechargement de %%f
	set url=http://monsite.com/
	set url=%url%%%f
	echo lien : %url%
	Powershell.exe -command "(New-Object System.Net.WebClient).DownloadFile(%url%,%%f)"
)

%url% ne vaut rien... du coup le téléchargement ne se fait pas.

Merci pour votre aide !!