CMD.exe replacement [closed]

Edited: I’ve been using ConEmu (http://conemu.github.io/) for quite some time now. This one is a wrapper too, since it is not really possible to replace the Windows console without rewriting the whole command interpreter. Below the line is my original answer for an earlier alternative. Not exactly a replacement (actually, it’s a prettifying wrapper) but … Read more

How do I ‘run as’ ‘Network Service’?

Use PsExec.exe from SysInternals, running from an elevated command prompt. e.g. this will open a new command prompt running as NETWORK SERVICE: psexec -i -u “nt authority\network service” cmd.exe this will run it as LOCAL SYSTEM: psexec -i -s cmd.exe You can verify these by running whoami from the cmd prompt. See also: http://forum.sysinternals.com/how-to-start-cmdexe-as-network-service_topic15797.html Interactive … Read more

Argument passing strategy – environment variables vs. command line

1) I would recommend avoiding environmental variables as much as possible. Pros of environmental variables easy to use because they’re visible from anywhere. If lots of independent programs need a piece of information, this approach is a whole lot more convenient. Cons of environmental variables hard to use correctly because they’re visible (delete-able, set-able) from … Read more

How to pass command-line arguments to a PowerShell ps1 file

This article helps. In particular, this section: -File Runs the specified script in the local scope (“dot-sourced”), so that the functions and variables that the script creates are available in the current session. Enter the script file path and any parameters. File must be the last parameter in the command, because all characters typed after … Read more

How to suppress specific MSBuild warning

I’ve managed to supress the warning level with /p:WarningLevel=X msbuild.exe MySolution.sln /t:Rebuild /p:WarningLevel=0 /p:Configuration=Release ^^^^^^^^^^^^^^^^^ Warning Level Meaning ——– ——————————————- 0 Turns off emission of all warning messages. 1 Displays severe warning messages 2 Displays level 1 warnings plus certain, less-severe warnings, such as warnings about hiding class members 3 Displays level 2 warnings plus … Read more

Pane Title in Tmux

This functionality has been added to tmux in this commit. It is not in version 2.2, but it looks like it will be in 2.3. To enable it: tmux set -g pane-border-status top or if you prefer: tmux set -g pane-border-status bottom To set a custom text as your pane border status line you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)