Launching Chrome HTML with command line Syntax












1














I am using a .bat file to launch a Kantu generated HTML macro. The macro starts chrome and opens a file path to the macro. I need chrome to launch with the -ignore-certificate-errors command line but it gives me several errors. The current syntax displayed below launches chrome properly with the command line but does not recognize the ?direct=1 at the end of the file path that prevents the script from stopping.



The current version:



Start "Chrome.exe"-ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


The old line WITHOUT command line (this functions perfectly but the command line isnt there)



Start Chrome.exe "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


So right now I can either launch chrome with a command line or I can have it recognize the ?direct=1 suffix to my file path (which is essential for the macro to run).



What am I doing wrong? Thanks for the time and the help with this, yall!










share|improve this question
























  • Looks like the recurring problem with start interpreting the first double quoted text being interpreted as window title,
    – LotPings
    Nov 16 '18 at 18:14










  • So how do I rewrite it? I have tried several different iterations without success.
    – Hobbles
    Nov 16 '18 at 18:21






  • 3




    Insert a dummy/empty title Start "title foobar" "Chrome.exe" -ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"
    – LotPings
    Nov 16 '18 at 18:24






  • 1




    WOOT! That worked perfectly! Thank you so very much, sir! You saved our bacon!
    – Hobbles
    Nov 16 '18 at 18:30
















1














I am using a .bat file to launch a Kantu generated HTML macro. The macro starts chrome and opens a file path to the macro. I need chrome to launch with the -ignore-certificate-errors command line but it gives me several errors. The current syntax displayed below launches chrome properly with the command line but does not recognize the ?direct=1 at the end of the file path that prevents the script from stopping.



The current version:



Start "Chrome.exe"-ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


The old line WITHOUT command line (this functions perfectly but the command line isnt there)



Start Chrome.exe "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


So right now I can either launch chrome with a command line or I can have it recognize the ?direct=1 suffix to my file path (which is essential for the macro to run).



What am I doing wrong? Thanks for the time and the help with this, yall!










share|improve this question
























  • Looks like the recurring problem with start interpreting the first double quoted text being interpreted as window title,
    – LotPings
    Nov 16 '18 at 18:14










  • So how do I rewrite it? I have tried several different iterations without success.
    – Hobbles
    Nov 16 '18 at 18:21






  • 3




    Insert a dummy/empty title Start "title foobar" "Chrome.exe" -ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"
    – LotPings
    Nov 16 '18 at 18:24






  • 1




    WOOT! That worked perfectly! Thank you so very much, sir! You saved our bacon!
    – Hobbles
    Nov 16 '18 at 18:30














1












1








1







I am using a .bat file to launch a Kantu generated HTML macro. The macro starts chrome and opens a file path to the macro. I need chrome to launch with the -ignore-certificate-errors command line but it gives me several errors. The current syntax displayed below launches chrome properly with the command line but does not recognize the ?direct=1 at the end of the file path that prevents the script from stopping.



The current version:



Start "Chrome.exe"-ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


The old line WITHOUT command line (this functions perfectly but the command line isnt there)



Start Chrome.exe "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


So right now I can either launch chrome with a command line or I can have it recognize the ?direct=1 suffix to my file path (which is essential for the macro to run).



What am I doing wrong? Thanks for the time and the help with this, yall!










share|improve this question















I am using a .bat file to launch a Kantu generated HTML macro. The macro starts chrome and opens a file path to the macro. I need chrome to launch with the -ignore-certificate-errors command line but it gives me several errors. The current syntax displayed below launches chrome properly with the command line but does not recognize the ?direct=1 at the end of the file path that prevents the script from stopping.



The current version:



Start "Chrome.exe"-ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


The old line WITHOUT command line (this functions perfectly but the command line isnt there)



Start Chrome.exe "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"


So right now I can either launch chrome with a command line or I can have it recognize the ?direct=1 suffix to my file path (which is essential for the macro to run).



What am I doing wrong? Thanks for the time and the help with this, yall!







html google-chrome batch-file command-line kantu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 20:38









timfredo

21115




21115










asked Nov 16 '18 at 18:02









Hobbles

91




91












  • Looks like the recurring problem with start interpreting the first double quoted text being interpreted as window title,
    – LotPings
    Nov 16 '18 at 18:14










  • So how do I rewrite it? I have tried several different iterations without success.
    – Hobbles
    Nov 16 '18 at 18:21






  • 3




    Insert a dummy/empty title Start "title foobar" "Chrome.exe" -ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"
    – LotPings
    Nov 16 '18 at 18:24






  • 1




    WOOT! That worked perfectly! Thank you so very much, sir! You saved our bacon!
    – Hobbles
    Nov 16 '18 at 18:30


















  • Looks like the recurring problem with start interpreting the first double quoted text being interpreted as window title,
    – LotPings
    Nov 16 '18 at 18:14










  • So how do I rewrite it? I have tried several different iterations without success.
    – Hobbles
    Nov 16 '18 at 18:21






  • 3




    Insert a dummy/empty title Start "title foobar" "Chrome.exe" -ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"
    – LotPings
    Nov 16 '18 at 18:24






  • 1




    WOOT! That worked perfectly! Thank you so very much, sir! You saved our bacon!
    – Hobbles
    Nov 16 '18 at 18:30
















Looks like the recurring problem with start interpreting the first double quoted text being interpreted as window title,
– LotPings
Nov 16 '18 at 18:14




Looks like the recurring problem with start interpreting the first double quoted text being interpreted as window title,
– LotPings
Nov 16 '18 at 18:14












So how do I rewrite it? I have tried several different iterations without success.
– Hobbles
Nov 16 '18 at 18:21




So how do I rewrite it? I have tried several different iterations without success.
– Hobbles
Nov 16 '18 at 18:21




3




3




Insert a dummy/empty title Start "title foobar" "Chrome.exe" -ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"
– LotPings
Nov 16 '18 at 18:24




Insert a dummy/empty title Start "title foobar" "Chrome.exe" -ignore-certificate-errors "file:///c:/Users/%username%/Desktop/Macros/Alarm_Log_AOB_Heritage.html?direct=1"
– LotPings
Nov 16 '18 at 18:24




1




1




WOOT! That worked perfectly! Thank you so very much, sir! You saved our bacon!
– Hobbles
Nov 16 '18 at 18:30




WOOT! That worked perfectly! Thank you so very much, sir! You saved our bacon!
– Hobbles
Nov 16 '18 at 18:30












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53343145%2flaunching-chrome-html-with-command-line-syntax%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53343145%2flaunching-chrome-html-with-command-line-syntax%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?