Skip to content

Instantly share code, notes, and snippets.

@JohannesHoppe
Last active August 18, 2016 21:32
Show Gist options
  • Save JohannesHoppe/9bd50838bdcc81d890ce09c316082092 to your computer and use it in GitHub Desktop.
Save JohannesHoppe/9bd50838bdcc81d890ce09c316082092 to your computer and use it in GitHub Desktop.
for cmder | Console Emulator
:: cmder | Console Emulator
:: use this file to run your own startup commands
:: use @ in front of the command to prevent printing the command
:: @call "C:\Program Files\Git/cmd/start-ssh-agent.cmd
:: @set PATH=%CMDER_ROOT%\vendor\whatever;%PATH%
@e:
@cd Angular2Buch
@net session >nul 2>&1
@if %errorLevel% == 0 (
echo Running with administrative permissions
) else (
echo RUNNING WITHOUT ADMINISTRATIVE PERMISSIONS!
echo Add the following switch to the command: -new_console:a
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment