How can I get the Short path and filename of a file that is on my desktop??

I'm running windowsXP.

I'm doing it the way that one would presumably do it, and i'm getting gobbldy-goop... but it's working for all the files which aren't on my desktop (or in a desktop folder)...

Does anyone know??