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

VS2003 - File.Delete does not work in Vista?
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
User login
Related topics
- Triple Boot Win XP, Linux (Suse 10.1) and Vista Beta 2
- Deos openGL support Aero?
- Will I get RC1?
- install error that i have not seen mentioned anywhere yet!!!
- Hardware Spec
- Microsoft Mail Freezing
- Smart Display Support
- Developing on Vista
- Why \User\Me\AppData\Local contains so much?
- Widows Vista Firewall and port ranges: please make support f
- I got the vista beta working after some problems!!
- Vista Upgrade Advisor fails to run
- Install done, but the PC doesn't stop to reboot in loop
- Size of Vista
- Mobile Device Center Update - x64
- Sometimes my drivers work, but sometimes not.
- problem with active x control
- Vista On Laptop
- PlugPlayManager Problem
- Vista and Quickbooks
- Console?
- Unable to turn on Windows Defender in Security Center
- 80070103
- Media Player and Urge
- Dual Boot - Two Drives, XP and Vista
- How long can I use Vista Beta 2?
- ANYONE WITH THE ISO BURNED TO A DVD, YOU CAN EASILY HELP ME!
- Locked out of folders in Documents
- How to uninstall vista beta2
- vista install won't even get started, winsetup.dll
- Selecting Background Problem
- Activation again and in general
- BSOD after instalations
- HTTP links do not work
- Installation failure
- Vista okay, Windows Explorer not!
- Unistall upgrade
- Networkdrive show only a limited number of folders/files
- How to Install Vista using virtual drive
- NVIDIA Force Ware 87.45 Alpha is now Available for Build 530