access denied trying extracting an archive on the windows user temp folder
Posted
by Hanan
on Stack Overflow
See other posts from Stack Overflow
or by Hanan
Published on 2008-11-03T10:19:01Z
Indexed on
2010/05/11
16:04 UTC
Read the original article
Hit count: 452
I'm trying to run a command-line process (which is extraction of a .7z archive) on a file that lies in a temporary folder on the windows user temp directory (C:\Documents and Settings\User\Local Settings\Temp), using Process in my c# app.
I think the process return error that happens because of "access denied" because I can see a win32Exception with error code 5 when I dig in the prcoess object of .NET.
doing the same on some other location worked fine before, so I guess maybe it's something I'm not supposed to do ? (running a process to use a file on the the %TEMP%) perhaps I need to pass security somehow?
© Stack Overflow or respective owner