문제

I used Izpack to create an installer. The target path the user will choose will be used to replace placeholders in windows .bat files which works fine until the user chooses a path with spaces like c:\Program Files\plapla, how can I solve this problem?

도움이 되었습니까?

해결책

Put double quotes around the paths that include placeholders in the .bat files

"${THEPATH}\example.txt"

This should then work in all cases, both when the path contains spaces and when it doesn't.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top