You are correct about the
spuninst switches. You can use either
/quiet for quiet mode (no user interaction or display) or the
/passive switch (unattended mode).
:start
echo create a text file
notepad file.txt
move file.txt archive\
goto start
this will simply start notepad until memory is exhausted.
Not quite. After the
echo statement is executed,
notepad will launch and the batch file will
wait for
notepad to be exited before executing the
move statement. Notepad and the cmd interpreter execute in separate address spaces, with the batch file being interpreted and executed within the
cmd.exe address space; when notepad terminates, Windows will free up any memory used by the
notepad task and proceed to the
move instruction. The memory used is not cumulative.
I still fail to see the difference between
start /wait and running a program
in-line.