Batch file question
Can you save and close a notepad window with a batch file?
Can you close any application with a batch file?
REM save and close notepad
SaveAndCloseNotepad.exe
REM You just have to write the code for SaveAndCloseNotepad.exe
SaveAndCloseNotepad.exe
REM You just have to write the code for SaveAndCloseNotepad.exe
REM you could terminate forcefully (no save and close):
taskkill /F /IM notepad.exe
REM or with the "do you want to save" box:
taskkill /IM notepad.exe
REM /F argument forcefully closes
REM thats the best you can do i think without writing a
REM program to do it
taskkill /F /IM notepad.exe
REM or with the "do you want to save" box:
taskkill /IM notepad.exe
REM /F argument forcefully closes
REM thats the best you can do i think without writing a
REM program to do it
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement