Advice on opening datapaths

I want to make a program that reads a datapath from a textfile and then opens it afterwards. If I want to open a textfile there is no problem but when I try to open an application like TS3, it either does not do anything

Unbenannt