Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

273
Visualizações
How to create an .exe from an HTML5 in webBrowser?

I have created an Adobe Animate application that generates an .html file, a .JS file and a .png file. I would like to convert this application to .exe. To do this, I use the "Windows from" application in Visual Studio in which I have inserted "WebBrowser". I indicate then the file and the directory to open the index.html file:

this.webBrowser1.Url = new System.Uri("J:\Mes Documents\bol9\index.html", System.UriKind.Absolute);

When I click on "Start" the program tells me "an error has occurred in the script of this page". The error indicates that the problem comes from the "src" lines of the html.

Being a novice in the management of Visual Studio, I would like to ask for your help to solve my problem.

Translated with www.DeepL.com/Translator (free version)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I don't know if this is the problem as stated in my comment, but you could check about escaping the space in your path:

J:\Mes Documents\bol9\index.html

you will need to tr a few solutions to your problem, as i can't test myself.

Why spaces can be addressed as a problem? Usually there is a whole history of problems linked to them in programming, as stated in https://www.w3schools.com/tags/ref_urlencode.ASP

Notice that here they talk about URLs, i dont know if the same rules apply to your local path, but you can try.

URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. ... URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign or with %20.

Lastly, if all this doesn't work, you can try to add a backslash to your space:

*J:\Mes/ Documents\bol9\index.html*

Please let me know if this works, hope i was clear and i can lead you to the right solution.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda