vs2003 file delete does not work vista

VS2003 - File.Delete does not work in Vista?

Hello, In Visual Stadio 2003, the function File.Delete will not work in Windows Vista 5365, why? And the Win32 API SHFileOperation also not work in Vista, how to delete a file in Vista?
Thank you

Because your Visual Studio version is tooooo old! Get an Express C# Edition - that's fully compatible.
-- Zack Whittaker » ZackNET Enterprises: www.zacknet.co.uk » MSBlog on ResDev: www.msblog.org » Vista Knowledge Base: www.vistabase.co.uk » This mailing is provided "as is" with no warranties, and confers no rights. All opinions expressed are those of myself unless stated so, and not of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared that up!
--: Original message follows :-- "yxq" wrote in message

Hello, In Visual Stadio 2003, the function File.Delete will not work in Windows Vista 5365, why? And the Win32 API SHFileOperation also not work in Vista, how to delete a file in Vista?
Thank
you

Thats a stupid answer. If Visual Basic 6 can run on Windows Vista which predates Visual Studio .NET 2003 by 1 version, (Visual Studio .NET 2002), its obviously not a version issue. Zack, I am not attacking you, I am just pointing out your lack of understanding and lack of effort to even "try" and give a sensible answer sometimes.
yxq, I am not a programmer, so I can't answer your question, but I can make a few "sensible" suggestions, (I have Visual Studio 2005 Professional Edition and I am struggling to even figure out how to launch a new project). The best you can do is try the same procedure in a later build of Vista (5381) to see if the problem reoccurrs or is fixed or try beta 2 when it becomes public. Also, you could file a report in the mean time, since this is an interim build which means you are either a Technical Tester or TAP customer.
You could also start a topic on this issue in the private newsgroups, maybe someone was having a similar issue and found a workaround. Some have suggested right clicking on the Visual Studio IDE executable and running it with Elevated priviledges, maybe that will work. -- Andre Windows Connected | http://www.windowsconnected.com Extended64 | http://www.extended64.com Blog | http://www.extended64.com/blogs/andre http://spaces.msn.com/members/adacosta
"Zack Whittaker" wrote in message

Because your Visual Studio version is tooooo old! Get an Express C# Edition - that's fully compatible.
--
Zack Whittaker » ZackNET Enterprises: www.zacknet.co.uk » MSBlog on ResDev: www.msblog.org » Vista Knowledge Base: www.vistabase.co.uk » This mailing is provided "as is" with no warranties, and confers no rights. All opinions expressed are those of myself unless stated so, and not of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared that up!
--: Original message follows :-- "yxq" wrote in message Hello, In Visual Stadio 2003, the function File.Delete will not work in Windows Vista 5365, why? And the Win32 API SHFileOperation also not work in Vista, how to delete a file in Vista?
Thank you

The Delete() operation is a operation of the File class in the System.IO namespace. Behind the scenes the Delete() operation will call the DeleteFile() function in the Kernel32 library and nothing changed in the ..NET Framework v2.0. With other words this should work normally since neither the DeleteFile() nor the SHFileOperation has been deprecated to my knowledge.
What exception is being thrown exactly?
-- Gabriel Lozano-Morán The .NET Aficionado http://www.pointerx.net
"yxq" wrote in message

Hello, In Visual Stadio 2003, the function File.Delete will not work in Windows Vista 5365, why? And the Win32 API SHFileOperation also not work in Vista, how to delete a file in Vista?
Thank
you

Windows Vista

Topic:


Nick: