I have this script The problem is that it doesn't send alt+f4 on the 2 windows…
Jump to turn (8)
- 1I have this script The problem is that it doesn't send alt+f4 on the 2 windows C
- 2But I don't want all the windows to close. I want only the 2 windows it opens to
- 3עכשיו החלון נפתח והסקריפט נסגר אני רוצה שהחלון יסגר לא הסקריפט
- 4עדיין אותו דבר ללא שינוי
- 5לא עזר הסקריפט נסגר החלון נשאר פתוח
- 6עכשיו הסקריפט נשאר פתוח אבל חלון ה Program Files (x86) עדיין לא נסגר You opened
- 7פשוט שהחלון שנפתח יסומן ואז עליו ישלח alt+f4
- 8'Start-Sleep' is not recognized as an internal or external command, operable pro
- User
I have this script The problem is that it doesn't send alt+f4 on the 2 windows C:\Program Files (x86) that open
@echo off start "" "C:\Program Files (x86)" timeout /t 2 /nobreak >nul
:: Using PowerShell to send Alt + F4 to the active window powershell -command "wshell.AppActivate('Program Files (x86)'); Start-Sleep -Seconds 1; $wshell.SendKeys('%{F4}')"