-1
I use the following command at the prompt to unzip the file and at the end close the window. However, when there are no more files, it informs that it has no file and does not close the window.
How to make it close cmd even when it does not find the file?
Code:
dir "c:\home\.7z" /s/b > "c:\output.txt" && exit
whereas you want a
exit
unconditional, if you use a script it might be better to put Exit on a separate line instead of using operators (even for readability).– Bacco