Comments (5)
Does your username contain spaces or special characters?
from bat2exe.
no
from bat2exe.
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.
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.
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)
- Can't use to make a .bat->.exe to run a .exe within same terminal/prompt window HOT 1
- Did Not Accurately Convert .bat to .exe HOT 2
- current directory
- Error can't find .bat is resolved by not using special characters like ( or ) in the folders name
- Virus warning when downloading HOT 2
- 7zSD.sfx HOT 1
- Arguments HOT 2
- Arguments passed to the EXE are doubled in the BAT HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bat2exe.