@Nic
Thanks again, the url encoding was all that was needed, I was blind, I called it with arg2 and not url as the argument for RunProgram()^^
Problem solved, it now works as expected

Absolutely! But don't dare to try that one on larger files...Btw. this is much easier and more elegant
Code: Select all
RunProgram("cmd", "/c cd C:\ && shutdown /h", GetTemporaryDirectory(), #PB_Program_Hide)