Pregunta

I have a set of batch files. Some of them are shortcuts to long running tasks, like an FTP server. I want to launch them in a separate tab, so that I can look at the output later. I've found the -new_console option, but it doesn't seem to work on batch files (while it does work on plain executables) - ftp.bat -new_console will run in the same console.

Is this by design? If so - is there a workaround?

UPD1: As I suspected, cmd /c ftp.bat -new_console did work. Looks like ConEmu doesn't count .bat or .cmd as executables. Though, the question remains the same.

¿Fue útil?

Solución

When you type in your prompt "ftp.bat" cmd don't start new process, it reads file and execute it contents internally.

ConEmu process "-new_console" when shell create new process only.

So, if you need to start cmd/bat in new console - use "cmd /c " or alias for example. Also, you may use "-new_console" inside of batch file, when you starting ftp or any other process.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top