Blog Archives

Typically the solution you will see to this question upon googling is to add “pause” to the end of your batch file.

This will keep the batch open, but it will not allow you to enter additional commands and after hitting a key will close the window immediately.

Alternatively, if you would like to keep the window open, such as creating a shortcut to a command line app, you can use cmd.exe /K.

G:\PathToMyCommandLineExeApp
G:
MyApp.exe /?
cmd.exe /K cmd.exe

Place the above code snippet into batch file of your choosing, such as start menu folder, and upon launch it will not change into the directory and path where your command line app is located, execute it displaying it’s parameters (/? is app specific) and then run cmd.exe with \K option which allows the window to stay open per MSDN (see reference below).

For a developer or IT admin working in Windows Server 2008 environment, you may have noticed ctrl+alt+del does not work over remote connection and you can no longer change your password from control panel.

The best solution to this in my opinion, that will likely work far into the future, is the command line.

Also keep in mind you are a server admin and disable much functionality for your remote users, sometimes these permissions don’t always apply to command line variants and the latter can be used for privilege escalation in the event of a workstation or user profile compromise.

Recent Posts

Previous Posts

Quotes

If we pommel through it and remained determined and follow through.. will that determine victory? (11/12/2013)

The formula for success is an equation with quantity, quality and perception. Everything else is anyone's guess. (11/1/2013)

World full of automation demands a new breed of worker. (3/3/2013)

Even the smallest piece of life contains a symphony of miracles. (8/13/2012)

Once your brain crosses over the threshold of limits you've been taught that define you, it's hard to turn back. (2/6/2012)

The flow of information can be redirected, but never cut off. (Winter 2010)

I don't like unknowns. It's not the truth that bothers me, it's wondering what that truth is. (Winter 2010)

We are nodes on the hive brain of the internet - the evolutionary collective consciousness... where each thought is merely a fraction of the blogosphere. (Summer 2008)

No one person thinks of a single idea. Every idea and its' variations always seem to spring forth simultaneously... it's as if there is a large pool somewhere filled with all ideas that we pull from. (Spring 2003)

Deep in our genetic structure, there lay dormant traits and attributes which are activated conditionally, outside of heredity. This has not yet been proven, but I have a gut feeling... and will guarantee that these innate qualities have already surfaced. (Summer 2002)