Is there an easy way to convert a path to a url?
Just trying to save myself the trouble of actually having to do it via multiple string functions.
Thanks.
Printable View
Is there an easy way to convert a path to a url?
Just trying to save myself the trouble of actually having to do it via multiple string functions.
Thanks.
Use the Replace function.
Code:urlstring = "C:\file.exe"
urlpath = Replace(urlstring, "C:\file.exe", "file://C:\file.exe")
'I forgot the file://..don't know how many /'s you put
'I am in skool and cannot find out, but you get the idea