Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win: fix language dependent delete script #149
This commit addresses the language dependency of the `takeown /d y` command in non-English Windows versions by using the `choice` utility. This utility dynamically determines the equivalent of 'yes' in the current system language, resolving issues encountered in the delete script. Other solution options such as enumerating language equivalents, adjusting script culture settings, using side-effects of the `copy` command, and parsing `takeown` help documentation proved either impractical or unreliable. The `choice` command has been successfully tested in both English and German environments, ensuring reliable execution across various locales. This change replaces the previous `takeown` usage in the script, its reliability across diverse Windows locales.
- Loading branch information