I am trying to retrieve all the names of the mp3 files from my hard drive, heres the full code, what i am facing is "Access to the path 'D:\System Volume Information' is denied." error, but i have changed the manifest file as below
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</asmv1:assembly>
/>
but still no luck any idea?
Heres the code
Dim filenames() As String = Directory.GetFiles(Cpath, "*.mp3", SearchOption.AllDirectories) 'this is where the D:\System Volume Information' is denied. error pops up
Dim i As Integer
Dim filename As String
pgr1.Value += 2
For i = 0 To filenames.Length - 1
filename = Path.GetFileName(filenames(i))
lst_cres.Items.Add(filename)
pgr1.Value += 1
Next i
Label1.Text = "Total File Names : " & lst_cres.Items.Count