Using %PROGRAMFILES(x86)% on Windows OS 32bit

According to this the environment variable %PROGRAMFILES(x86)% is only available on 64-bit systems. However, if you are on a 64-bit system and use %PROGRAMFILES%, the result you get depend on whether the process requesting the environment variable is 32-bit or 64-bit. So from a 64-bit process on a 64-bit system you would get C:\Program Files, from a 32-bit process on a … Read more

Windows batch – concatenate multiple text files into one

Windows type command works similarly to UNIX cat. Example 1: Merge with file names (This will merge file1.csv & file2.csv to create concat.csv) Example 2: Merge files with pattern (This will merge all files with csv extension and create concat.csv) When using asterisk(*) to concatenate all files. Please DON’T use same extension for target file(Eg. .csv). There should be some difference … Read more

Sublime Text from Command Line

Windows Command Prompt For Windows cmd.exe you could just add the sublime text installation directory to your PATH environment variable, this would allow you to type: Personally, I add a doskey (in a .bat file set to autorun with cmd) so I can type subl file.rb: Cygwin For the default bash shell add an alias to your ~/.bashrc file, e.g: