Skip to content

Instantly share code, notes, and snippets.

@ProfAvery
Last active December 22, 2015 19:09
Show Gist options
  • Save ProfAvery/6518196 to your computer and use it in GitHub Desktop.
Save ProfAvery/6518196 to your computer and use it in GitHub Desktop.
How to create a .profile file for Windows
@echo off
REM Enable by running the following command:
REM reg add "HKCU\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d ^%USERPROFILE^%\.profile.cmd /f
set HOME=%USERPROFILE%
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_01
set PATH=%JAVA_HOME%\bin;%PATH%
set ANT_HOME=C:\apache-ant-1.9.2
set PATH=%ANT_HOME%\bin;%PATH%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment