I'm having some issues with this program I'm trying to make. It's a simple program that deletes a folder from my SD card. But when I go to run it, click the button that does this action, it spits out this error:
Could not find a part of the path 'C:\sdcafiine'.
This is the code I used:
Dim path As String = Form1.ComboBox1.Text & "\sdcafiine"
System.IO.Directory.Delete(path, True)
I have another form that has a combobox in it with drive letters in it. This line of code basically reads the drive number and merges it with the path, to create something like "L:\sdcafiine", or "O:\sdcafiine."
For some reason, it replaces that read drive letter with "C:".