Home » Questions » Computers [ Ask a new question ]

Run specific program from command line

Run specific program from command line

Next stupid question...

Asked by: Guest | Views: 277
Total answers/comments: 2
Guest [Entry]

"Add its directory to your PATH.

Right click My Computer and select Properties
Navigate to the Advanced tab and click the Environment Variables button

Select PATH and hit edit

append a semicolon with the directory location of VIM's executable

Take the version you don't want to use out of the System32 folder."
Guest [Entry]

Or, if you need to keep both versions, make sure the path for the one you want is ahead of the path of the one you don't want. In the example above, c:\ruby\bin was at the head of the path variable, so anything in there will match first: c:\ruby\bin\vim.exe (not that you'd put it there!) would run before the one in Program Files.