@gwaihir - I tried O&O and it is ok - I think I remember it having a lot of different ways of defraggin the HD depending on what your purpose was, ie. server/storage/A/V, etc. However I think in some study they compared O&O to Diskeeper and for the majority of cases they were about equal - i don't think there is any big difference.
@Jen
I think it depends on which OS you run - Windows keeps knocking off certain commands (like CHOICE) and implementing new ones.
If you have WinXP you can use the Taskkill comand, run cmd and type in taskkill /?
If you have Win2k you can try the 'exit' command - not sure how your program will like it though - its not an elegant closure sometimes.
You also have the option of using the WSH (windows script hosting). Take the following code
[/CODE]dim shell
set shell=CreateObject("WScript.Shell")
shell.Run "C:\winnt\system32\notepad.exe"
do while(shell.AppActivate("Untitled - Notepad")=FALSE)
wscript.sleep 200
loop
shell.Sendkeys "HELLO WORLD" 'Write Hello world
wscript.sleep 1999 'wait
Shell.Sendkeys "{Enter}" 'new line
shell.Sendkeys "ANYONE THERE?" 'write anyone there?
wscript.sleep 1999 'wait
shell.Sendkeys "%{f4}" 'send alt-F4 to close the application
wscript.sleep 1999 'wait
shell.Sendkeys "%N" 'send Alt-N - select not to save file
wscript.sleep 1999 'sleep however long necessary to complete the run
'Again you will have to figure this one out
[CODE]
Open up a new text document in Notepad and save it as something like 'Test1.vbs' - you need the vbs ending for visual basic script
then just run the script - if you have an antivirus you might get a warning - just allow the whole script - (then I'll have all your bank information - ha-ha-ha

)
You don't have to touch or click anything - the script will open notepad and close it - very simple. This is set for Windows 2000 - for XP just change 'winnt' to 'windows' assuming your OS is on the C: drive
As you'll see the wsh is a bit more powerful than just the command line batch files. Hope it helps