hey so like the title states, i need help fixing my code. i'm not exactly sure why its not working, but if you can help me out i'd appreciate it very much. the bolded calls to the function throws errors that say they can't find the folder.
Imports System
Imports System.IO
Public Class frmMain
' This program uses the environment class and username property to attain the username.
Private Sub cmdRun_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRun.Click
Dim intDocumentsSize As Int64
Dim intDriveCapacity As Int64
Dim intFreeSpace As Int64
Dim intMusicSize As Int64
Dim intTotalUsage As Int64
Dim intVideoSize As Int64
Dim strd2 As DriveInfo = New DriveInfo("C:\")
Dim strDirectoryName As String
Dim strDriveCapacity As String
Dim strFreeSpace As String
Dim strTotalUsage As String
Dim strUsername As String = Environment.UserName
so i figured out that the folders needed to be renamed to just documents, music, and videos. but now the program keeps giving me an error for the documents folder saying
UnauthorizedAccessException was unhandled
Access to path 'C:\Users\Home\Documents\Music\' is denied
don't know why its saying \Music when I'm only asking for the documents