ich möchte eine Ini-Datei in allen Benutzerprofilen patchen.
Leider gelingt es mir nicht, den Verzeichnissnamen korrekt anzugeben. Im Moment mache ich das so:
Code: Alles auswählen
...
Patches_Ini "%UserProfileDir%\Test\Test.ini" /AllNtUserProfiles
...
[Patches_Ini]
add [Settings] Language File="irgendwas"
Mit irgendeiner anderen globalen Konstanten (z. B. %SystemRoot%) und dann natürlich ohne die /AllNtUserProfiles Option funktioniert es problemlos.Execution of Patches_Ini
Patching: %UserProfileDir%\Test\Test.ini
Info: This file does not exist and will be created
Error: File Test.ini could not be created in Directory %UserProfileDir%\Test\. ("Invalid filename")
Patching: %UserProfileDir%\Test\Test.ini
Info: This file does not exist and will be created
Error: File Test.ini could not be created in Directory %UserProfileDir%\Test\. ("Invalid filename")
Patching: %UserProfileDir%\Test\Test.ini
Info: This file does not exist and will be created
Error: File Test.ini could not be created in Directory %UserProfileDir%\Test\. ("Invalid filename")
Wäre für jede Hilfe Dankbar.