Hello everyone, I'm running into a problem now and still haven't been able to solve it, so I had no choice but to post here for help. I hope you can help me out.
Here's the situation. For example, I wrote a batch file like this:
Here, set.bat is used to set environment variables, and a.exe needs those environment variables to be set before it can run. My problem is that when I run this bat file, a DOS window flashes by while set.bat is setting the environment variables.
I've already looked through other posts in the forum. I don't want to use vbs, and I also don't want to rely on third-party software and make it so troublesome. I don't know whether there is any other way. set.bat is used to set environment variables, so I don't know whether there is some other way to set environment variables in the background, or hide that DOS window that flashes by, or minimize the DOS window. In short, as long as it doesn't feel like the DOS window exists, that's fine. Does anyone have a good solution?
As for the call line, I tried start /min. It did minimize it, but it didn't exit automatically, and the environment variables it set actually had no effect on a.exe, which is really depressing.
I wonder whether any experts here have a good trick for this.
Thanks in advance.
[ Last edited by crystal0808 on 2008-11-26 at 11:29 ]
Here's the situation. For example, I wrote a batch file like this:
@echo off
call ..\set.bat
start a.exe
Here, set.bat is used to set environment variables, and a.exe needs those environment variables to be set before it can run. My problem is that when I run this bat file, a DOS window flashes by while set.bat is setting the environment variables.
I've already looked through other posts in the forum. I don't want to use vbs, and I also don't want to rely on third-party software and make it so troublesome. I don't know whether there is any other way. set.bat is used to set environment variables, so I don't know whether there is some other way to set environment variables in the background, or hide that DOS window that flashes by, or minimize the DOS window. In short, as long as it doesn't feel like the DOS window exists, that's fine. Does anyone have a good solution?
As for the call line, I tried start /min. It did minimize it, but it didn't exit automatically, and the environment variables it set actually had no effect on a.exe, which is really depressing.
I wonder whether any experts here have a good trick for this.
Thanks in advance.
[ Last edited by crystal0808 on 2008-11-26 at 11:29 ]

