Delay start batch

After each wish to enter the windows, auto-run emule, first emule.exe directly to throw in the Startup group, we found that can start, but UPnP always prompt an error, even total server prompts lowid. Later found some time after the restart boot, etc. If emule, UPnP normal. So I wrote a simple batch, a total of three sentences:

@echo off
timeout /t 900
C:\emule\eMule.exe

It was found not start, again the last sentence amended as follows:

start cmd /c "C:\emule\eMule.exe"

Oh, to open emule, but there is a drawback, it is also a command line window remains open, you need to manually shut down.

And checked a lot of information, and finally amended as follows:

start "" "C:\emule\eMule.exe"

Finally normal. Seemingly simple function, specific to do it, may also run into unexpected problems.

Guess you like

Origin www.cnblogs.com/badnumber/p/11229467.html