1

I have been using this as reference to create a bat file to launch chrome with a predetermined url path but there is an issue I am having with this.

Here are the contents of my bat file

start "google" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files "H:\testsite\index.html?cd0=../test.txt&auto=1"

The problem is that Chrome launches to H:\testsite\index.html%3Fcd0=../test.txt&auto=1 instead of H:\testsite\index.html?cd0=../test.txt&auto=1 which means the page cannot be found. i need to manually replace the %3F with a ? to get it to work.

How can I resolve?

Sweepster
  • 113

1 Answers1

2

You can add file:/// in your string path//file:

start "google" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files "file:///H:\testsite\index.html?cd0=../test.txt&auto=1"
Io-oI
  • 9,237