I am creating a website with the purpose of making copies on removable media such as CDs and thumb drives. I would like to use IE in -k mode to open the home page.
This VBS achieves this:
Replacing 'www.google.com' with the full path of my html file works. However, since I will not know the full path of the file being that it will be on some sort of removable media, I cannot use a specific path.
My question is how do I use a relative path in VBS? The idea is to have the script at the root of the media, with a folder for the 'website'. So I'd just need the path to the containing folder of the script, and append \website\index.html to the VAR and throw that in the code. But how?
This VBS achieves this:
Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("iexplore.exe -k www.google.com", 1)
Replacing 'www.google.com' with the full path of my html file works. However, since I will not know the full path of the file being that it will be on some sort of removable media, I cannot use a specific path.
My question is how do I use a relative path in VBS? The idea is to have the script at the root of the media, with a folder for the 'website'. So I'd just need the path to the containing folder of the script, and append \website\index.html to the VAR and throw that in the code. But how?