mardi 11 février 2020

batch script For loop is not working, why?

Good morning.

I don't understand why my script is not working:

cd c:\users\****\desktop\certs
for /F "tokens=*" %%A in (servers.txt) do (
    for /d %%B in (*.*) do (
        if exist \\%%A\E:\temp\%%B (
            echo file existe 
            goto menu
        ) else (
            echo No existe
        )
    )
)

Best regards !

Aucun commentaire:

Enregistrer un commentaire