Skip to main content
gamedev.net
🔒 Locked

Batch file question

Started by warp X Oct 23, 2005 at 7:44 PM 1 replies 550+ views
Original Post
warp X
warp X
Can you save and close a notepad window with a batch file? Can you close any application with a batch file?
"I got stuck between levels 4 and 5 and got into this strange place: warp X..."
incin
incin
REM save and close notepad
SaveAndCloseNotepad.exe




REM You just have to write the code for SaveAndCloseNotepad.exe
shermy101
shermy101
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.