Im trying to expand a short directory path to a long one as used by windows eg:

c:\docume~1\myfold~1\mydocu~1\myrece~1

converted into:

c:\documents and settings\my folder settings\my documents\my received files

but im struggling

Ive been trying the DIR command but when i apply it to the short string above all it returns is 'my received files' so i lose the drive and path up to it. Anyone else know how to do this without using the API?

Thanks