Due to the number of directories you can put into your %PATH% environment variable it's very easy to have unintentional conflicts between application names. I swore I've come across this tip before, but I can't locate it anywhere. Is there way way at the command prompt to see the directory where the application is located in? For example, I'm looking for something like the following:
C:\> xcopy
Invalid number of parameters
0 File(s) copied
C:\> **SOME_COMMAND** xcopy
C:\Windows\System32\xcopy.exe
Answer
A little heavy, but if you like the command line in windows you owe it to yourself to try Cygwin. Place it's \bin folder on your PATH and you'll have a whole host of great tools, not least which, which tells you exactly which file you'd be executing :)
(And yes, I realise the irony of adding to your PATH to help with having too much there)
edit: This may also be appropriate.
No comments:
Post a Comment