How do I get the ms dos path for any given path? It would be perfect if I could pass a function a string for the long path, and it would return the dos path.

I swear I saw this before, but couldn't find it. I hope I wasn't dreaming!