PC Review Forums Newsgroups Windows Vista Windows Vista Performance VS2003 - File.Delete does not work in Vista?

Reply

VS2003 - File.Delete does not work in Vista?

 
Thread Tools Rate Thread
Old 17-05-2006, 10:41 PM   #1
yxq
Guest
 
Posts: n/a
Default 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


  Reply With Quote
Old 18-05-2006, 11:02 AM   #2
Zack Whittaker
Guest
 
Posts: n/a
Default Re: 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" <gayxq@163.net> wrote in message
news:%23BGYRMgeGHA.1324@TK2MSFTNGP04.phx.gbl...
> 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
>



  Reply With Quote
Old 18-05-2006, 08:33 PM   #3
Andre Da Costa
Guest
 
Posts: n/a
Default Re: VS2003 - File.Delete does not work in Vista?

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" <admin@zacknet.co.uk> wrote in message
news:uwYiLqmeGHA.3572@TK2MSFTNGP03.phx.gbl...
> 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" <gayxq@163.net> wrote in message
> news:%23BGYRMgeGHA.1324@TK2MSFTNGP04.phx.gbl...
>> 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
>>

>
>


  Reply With Quote
Old 26-05-2006, 07:05 PM   #4
Gabriel Lozano-Morán
Guest
 
Posts: n/a
Default Re: VS2003 - File.Delete does not work in Vista?

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" <gayxq@163.net> wrote in message
news:%23BGYRMgeGHA.1324@TK2MSFTNGP04.phx.gbl...
> 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
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off