0

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?

Ross Ridge
  • 38,414
  • 7
  • 81
  • 112
Shengyan
  • 93
  • 2
  • 7

2 Answers2

1

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:

  1. cvs.com
  2. cvs.bat
  3. 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.

Tung
  • 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
0

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.....

shan
  • 1