Loading a file form IE?

I am trying to load a file from a directory using IE. So far I am using the following code:

Dim OpenInet
OpenInet = Shell("C:\Program Files\Internet Explorer\iexplore.exe d:\hi.txt", 1)

Is there a way that I can open the file not assuming the file will always be in the d:\ drive?

Thanks in Advance
Who is Participating?
I'm not shure if this is what you want...

Dim OpenInet
FileName =  "d:\hi.txt"  'You can change this value
OpenInet = Shell("C:\Program Files\Internet Explorer\iexplore.exe " + FileName, 1)
changw414Author Commented:
I actually figured another way of doing it. Thanks for the effort!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.