Delete files in Windows Vista

G

Guest

I need to move files between folders. I am using VB.Net 2005. First I check
the target folder to see if the files exist, and if so, delete them. Then I
move the replacements, one at a time using:
If File.Exists(strFileName) then
File.Delete(strFileName)
End If
File.Move(strFileOldName, strNewFileName)

This works just fine in Windows XP. It works in Windows Vista (Release
version) with UAC turned off. With UAC turned on it fails. I don't even get
the UAC prompt.

I was logged on to Vista as a member of the Domain Administrators group when
this occured. Any ideas?

Bob Flenniken
 
S

Stephany Young

Well, you answered your own question haven't you.

It's obvious that it's the UAC, so, if I were you, I'd be researching the
ins and outs of the UAC.
 
G

Guest

Well, that's what I was asking - if anyone know about the UAC and where I
could go to find out. Thankfully, someone else gave me some useful info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top