PowerShell – Start-Process and Cmdline Switches
you are going to want to separate your arguments into separate parameter $msbuild = “C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe” $arguments = “/v:q /nologo” start-process $msbuild $arguments
you are going to want to separate your arguments into separate parameter $msbuild = “C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe” $arguments = “/v:q /nologo” start-process $msbuild $arguments
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
At first, you need to add : after the IP address to indicate the path is following: scp magento.tar.gz user@xx.x.x.xx:/var/www I don’t think you need to sudo the scp. In this case it doesn’t affect the remote machine, only the local command. Then if your user@xx.x.x.xx doesn’t have write access to /var/www then you need … Read more
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
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
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
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
Set environment variable DISABLE_UPDATE_PROMPT=true to always reply Yes and automatically upgrade. Set environment variable DISABLE_AUTO_UPDATE=true to always reply No and never upgrade. Simply add one of these in your ~/.zshrc somewhere before calling source $ZSH/oh-my-zsh.sh.
You can use the following little trick: set word=table set str=”jump over the chair” call set str=%%str:chair=%word%%% echo %str% The call there causes another layer of variable expansion, making it necessary to quote the original % signs but it all works out in the end.
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