kurze Syntaxfrage bei einem Leerzeichenproblem
Hallo,
in folgender zeile habe ich ein Problem an der stelle %vGroup%
Wenn der Inhalt von %vGroup% ohne Leerzeichen kommt funktioniert alles.
Wenn der Inhalt der Variable jedoch ein Leerzeichen enthält funktioniert es nicht mehr.
Die variable einfach mit "%vGroup%" anzusprechen geht auch nicht.
Hat jemand ne Idee ?
Gruß, Jan
in folgender zeile habe ich ein Problem an der stelle %vGroup%
for /f %%k in ('c:\scripting\Tools\adfind\adfind.exe -b ",dc=meine,dc=domain" -f "(&(objectcategory=group) (samaccountname=%vGroup%))" -dn -list -dsq') do echo %%k
Wenn der Inhalt von %vGroup% ohne Leerzeichen kommt funktioniert alles.
Wenn der Inhalt der Variable jedoch ein Leerzeichen enthält funktioniert es nicht mehr.
Die variable einfach mit "%vGroup%" anzusprechen geht auch nicht.
Hat jemand ne Idee ?
Gruß, Jan
Please also mark the comments that contributed to the solution of the article
Content-Key: 101094
Url: https://administrator.de/contentid/101094
Printed on: April 19, 2024 at 07:04 o'clock
2 Comments
Latest comment