Giter Club home page Giter Club logo

Comments (5)

islamadel avatar islamadel commented on July 24, 2024

Does your username contain spaces or special characters?

from bat2exe.

ajdelguidice avatar ajdelguidice commented on July 24, 2024

no

from bat2exe.

islamadel avatar islamadel commented on July 24, 2024

Please provide the code for your batch file and steps to recreate the error. also consider running the exe on a different pc if possible

from bat2exe.

ajdelguidice avatar ajdelguidice commented on July 24, 2024

if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" %* && exit
@echo off
cscript error.vbs
exit

The cscript file is the actual error message and its code is as follows:
x=msgbox("This application could not be opened",0+16,"Error")

from bat2exe.

vertigo220 avatar vertigo220 commented on July 24, 2024

I realize it's been a couple years, but a few issues I see right away:

  • the space between the 1 and && is going to set IS_MINIMIZED to "1 " so you either need to do 'set IS_MINIMIZED=1&&' or 'set "IS_MINIMIZED=1" &&'
  • You said you're using 'C:\Users(my username)...' which needs to be 'C:\Users(my username)...' (an even better way is to simply use "%userprofile%..."
  • %~dp0 can sometimes be problematic. Is the directory in the error the actual location of error.bat?

from bat2exe.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.