Click here to Skip to main content
15,914,444 members
Home / Discussions / C#
   

C#

 
QuestionWindows 7 and Directory.Exists ??? Pin
Paul Brower6-Nov-09 2:27
Paul Brower6-Nov-09 2:27 
AnswerRe: Windows 7 and Directory.Exists ??? Pin
Paul Brower6-Nov-09 3:18
Paul Brower6-Nov-09 3:18 
GeneralRe: Windows 7 and Directory.Exists ??? Pin
Calla6-Nov-09 3:27
Calla6-Nov-09 3:27 
GeneralRe: Windows 7 and Directory.Exists ??? Pin
Daniel Grunwald6-Nov-09 3:29
Daniel Grunwald6-Nov-09 3:29 
"C:\Program Files" is not writable for standard users (just as it was since Win2000 and earlier).
Starting with Vista, the default user account is a standard user; getting admin rights only when you explicitly run an app with them (UAC).

To allow old programs to continue to run, Windows will redirect writes to the "VirtualStore". This is done only with programs that are not marked as "UAC-compatible".

So you have to do two things:
1) to avoid confusion due to file system virtualization; mark your program as UAC-compatible by embedding an UAC manifest. VS2008 should do this automatically (see "Application Manifest" in the project options); for VS2005 it's a little bit more complicated: http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx[^]

2) Don't write to Program Files.
GeneralRe: Windows 7 and Directory.Exists ??? Pin
#realJSOP8-Nov-09 2:01
professional#realJSOP8-Nov-09 2:01 
QuestionC# "for example desktop icon"(object) drag and drop method Pin
Renven6-Nov-09 1:38
Renven6-Nov-09 1:38 
AnswerRe: C# "for example desktop icon"(object) drag and drop method Pin
Richard MacCutchan6-Nov-09 2:34
mveRichard MacCutchan6-Nov-09 2:34 
QuestionTelnet/pop3..........?? Pin
Hum Dum6-Nov-09 1:33
Hum Dum6-Nov-09 1:33 
QuestionSQL querying problem Pin
Emmet_Brown6-Nov-09 0:52
Emmet_Brown6-Nov-09 0:52 
AnswerMessage Closed Pin
6-Nov-09 1:09
stancrm6-Nov-09 1:09 
GeneralRe: SQL querying problem Pin
Emmet_Brown6-Nov-09 1:22
Emmet_Brown6-Nov-09 1:22 
GeneralMessage Closed Pin
6-Nov-09 1:33
stancrm6-Nov-09 1:33 
GeneralRe: SQL querying problem Pin
Emmet_Brown6-Nov-09 1:42
Emmet_Brown6-Nov-09 1:42 
GeneralRe: SQL querying problem Pin
Emmet_Brown6-Nov-09 1:52
Emmet_Brown6-Nov-09 1:52 
GeneralRe: SQL querying problem Pin
sravsk15-Dec-09 21:12
sravsk15-Dec-09 21:12 
AnswerRe: SQL querying problem Pin
Nicholas Butler6-Nov-09 2:00
sitebuilderNicholas Butler6-Nov-09 2:00 
AnswerRe: SQL querying problem Pin
Calla6-Nov-09 2:36
Calla6-Nov-09 2:36 
AnswerRe: SQL querying problem Pin
Emmet_Brown6-Nov-09 3:15
Emmet_Brown6-Nov-09 3:15 
AnswerRe: SQL querying problem Pin
Md. Marufuzzaman6-Nov-09 7:09
professionalMd. Marufuzzaman6-Nov-09 7:09 
QuestionTransferring items from a listbox to a string variable [modified] Pin
gamer11276-Nov-09 0:34
gamer11276-Nov-09 0:34 
AnswerRe: Transferring items from a listbox to a string variable Pin
Covean6-Nov-09 1:03
Covean6-Nov-09 1:03 
AnswerRe: Transferring items from a listbox to a string variable Pin
Eddy Vluggen6-Nov-09 1:14
professionalEddy Vluggen6-Nov-09 1:14 
GeneralRe: Transferring items from a listbox to a string variable Pin
V.6-Nov-09 1:27
professionalV.6-Nov-09 1:27 
GeneralRe: Transferring items from a listbox to a string variable Pin
Covean6-Nov-09 1:29
Covean6-Nov-09 1:29 
GeneralRe: Transferring items from a listbox to a string variable Pin
Eddy Vluggen6-Nov-09 2:12
professionalEddy Vluggen6-Nov-09 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.