When cvs is typed in cmd.exe in windows 7 nothing is output. The path of the cvs is already in the PATH :C:\Program Files (x86)\CVSNT\; When typing "C:\Program Files (x86)\CVSNT\cvs" there are outputs there. But when other .exe e.g. calc is typed the corresponding program can be executed. Any idea?
-
Could you please clarify what you mean when you say, "nothing is output"? – Tung Apr 17 '12 at 10:41
-
normally the DOS shall output "usage: cvs [cvs-options] command..." – Shengyan Apr 17 '12 at 10:43
-
So you are currently seeing "... is not recognized as an internal or external command"? – Tung Apr 17 '12 at 10:43
-
@Tung No, Nothing is output However under C:\Program Files (x86)\CVSNT typing cvs produces the expected output – Shengyan Apr 17 '12 at 10:44
2 Answers
This might sound like a strange suggestion, but try cvs.exe
instead of just cvs
. Without specifying an extension, your operating system will search for the first file that matches the name, cvs
. If it happens to find cvs.bat
in one of your paths, then it will execute the .bat file instead of the.exe.
If you have cvs.bat , cvs.com, and cvs.exe within the same directory. The order of precedence would be the following:
- cvs.com
- cvs.bat
- cvs.exe
I have a strong suspicion that there's a blank cvs.bat file hidden somewhere in one of folders defined in your path variable, and that you are actually running this batch file when you type cvs
.

- 5,334
- 1
- 34
- 41
-
Thanks. your suspicion is correct. There are 2 cvs.exe which are components of another software but their path position is ahead of C:\Program Files (x86)\CVSNT\ so one of the unexpected cvs is executed. Now it works after modifying the PATH variable. – Shengyan Apr 17 '12 at 11:15
HI the answer is Run the exe with full path like "C:\Program Files (x86)\CVSNT\cvs.exe" followed by CVS arguments like -q Checkout.....

- 1