How do I get the long path of a file or directory?

I need a path to the temporary directory that doesn't have a `~` in it. 

`%TEMP%` resolves to `C:\Users\YKAGAN~1\AppData\Local\Temp`

How do I obtain `C:\Users\ykaganovich\AppData\Local\Temp` ?