Jon,
>...At this one site, however, the user receives an "Invalid path or file name" program error when trying to launch the app.
Maybe it's not related to Terminal Services? Perhaps they installed to a folder with a space in the name and your code does not handle that by wrapping it in quotes? That would produce the error you mention.