jeudi 9 avril 2015

For command inside a batch

I'm wondering why this comand works pasted inside a console:



for /d /r "%Programfiles(x86)%\soft_to_remove" %d in (unins000.exe) do @if exist "%d" %d /silent


but if I paste it inside bat file, doesn't works with the error:



d" d /silent was unexpected at this time.


Seems a problem with the variable but I don't figure what to do.


Many thanks


Aucun commentaire:

Enregistrer un commentaire