In a batch file, I'm opening a window with a specific name like this:
@echo off
start "my log" /D \logs\ /I powershell -nologo -noexit -command "$host.ui.RawUI.WindowTitle = 'My log'"; get-content logfile.log -wait
So the window title is "My log".
I only want to run this command if the window is not already open. is there a bat file command to test for this? I'd rather not use a program or a powershell command, just a simple bat file cmd if possible.
Aucun commentaire:
Enregistrer un commentaire