Hi,
Please take note of the command in this bat file :
@echo off
start GoogleChromePortable.exe /index.html –kiosk
Google Chrome Portable does open in kiosk, except that it fails to open index.html.
Instead, it shows the home page (which I also set up to open index.html, in order to be able to see it); I don’t know if the reason for this is that Chrome does not accept any destination file, only the configured home page, when commanded to open in kiosk mode. Although I get to show the desired index.html page, it forces me to set up the index.html file in the browser configuration using the absolute path, taking away the flexibility of using any directory.
Thanks !!
C:\GoogleChromePortable
and in there you have GoogleChromePortable.exe, your .bat file, and a folder named docs with an index.html file inside.
Your .bat file would then look like:
@echo off
start GoogleChromePortable.exe –kiosk %cd%\docs\index.html
As to your second question – %CD% is a variable representing your current working directory. So in my example above %CD=C:\GoogleChromePortable. You can test this yourself by adding two lines to the start of your bat:
@echo off
echo %cd%
pause
start GoogleChromePortable.exe –kiosk %cd%\docs\index.html
I hope that’s helpful 🙂