I have the following code, which generates insert queries
For Each f As String In Directory.GetFiles(d)
objSQLStringBuilder.Append("insert into table1 (full_path, file_name) values ('" & f.Replace("'", "''") & "', '" & f.Remove(0, Len(d) + 1).Replace("'", "''") & "');")
Next
However, the paths which it finds are formatted as follows
c:\program files\microsoft office\winword.exe
I need to format the paths as follows
file:///c:/program%20files/microosoft%20office/winword.exe
How can I modify the above code to do this?