GetTempPath() question

G

Guest

I am sure this is a basic question. Why does the code below return the
following (i.e. without the full path descriptions)

string Temp = System.IO.Path.GetTempPath();

returns "C:\DOCUME~1\tobrien\LOCALS~1\Temp\"

instead of "C:\Documents and Settings\tobrien\Local Settings\Temp". Which
is returned if I browse for the Temp folder using Browse for Folder Dialog.

I want to ensure users do not choose their Temp folder for a backup
operation. Any insight into this issue is appreciated.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top