We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
cmd.exe - typing exit
[Deleted User]
Posts: 0 Newbie
in Techie Stuff
For all you command prompt guru's, who types exit? Who just closes the window? I see exit typed in CBT Nuggets and wondered what the point was. To cleanly close and flush buffers I guess?
0
Comments
-
its for regular batch or powershell scripting, if you want to terminate the current execution of the script file.0
-
I type exit.0
-
and I don't. It's completely irrelevant.
Oh no!! Hold on!! My other machine just caught fire when I only closed the command box instead of typing exit!!! Oh woe thrice woe.0 -
I'm polite and say bye to my ftp prompt.
For my nslookup I have to exit.
My telnet session on the other hand, I just tell to feck off.0 -
But what about the times when people use it to close a simple cmd.exe window? Any point there? As a side note powershell looks to be the way Mircosoft are going. Something to learn sharpish.its for regular batch or powershell scripting, if you want to terminate the current execution of the script file.
I hope it wasn't a production DC!kwikbreaks wrote: »and I don't. It's completely irrelevant.
Oh no!! Hold on!! My other machine just caught fire when I only closed the command box instead of typing exit!!! Oh woe thrice woe.
Like the manners.mr_fishbulb wrote: »I'm polite and say bye to my ftp prompt.
For my nslookup I have to exit.
My telnet session on the other hand, I just tell to feck off.0 -
I'm out of here, exit.0
-
Deleted_User wrote: »But what about the times when people use it to close a simple cmd.exe window?.
Id be dead surprised if both exit and the close button didn't share a common codebase.
IE I reckon the close button just kills the current process and calls exit itself OR both call a shared routine to close the current shell.
...Exit0 -
I just hit CTRL+D and wonder why the window hasn't closed... ;-)0
-
If you're already with your hands over the keyboard it might be slightly quicker to type exit or you might just prefer to do that.
The command is primarily for terminating a script.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.3K Banking & Borrowing
- 253.6K Reduce Debt & Boost Income
- 454.3K Spending & Discounts
- 245.3K Work, Benefits & Business
- 601.1K Mortgages, Homes & Bills
- 177.5K Life & Family
- 259.2K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards
