Better command line support
Posted: Tue Feb 20, 2007 5:32 am
I generally have multiple copies of files in different directories or different disks, that I routinely compare in order to determine what changes have occurred.
In such cases, the file names of the files being compared are the same, only the path or location is different.
When I use wincmp from the command line, I don't want to enter the file name twice, so I usually just enter the path (including file name) for the first file, and just the path to the second file (without the file name).
But many times when I do this, I get the dialog which says "DESTINATION FILE NOT FOUND!", and I have to enter the path and name of the second file.
For example, lets suppose that the current directory on the E: drive is "data", and the current directory on the G: drive is "files", and e:\data and g:\files contains the files I am working with.
If I set my current directory to e:\data, then when I enter the following command, then I get the "DESTINATION FILE NOT FOUND!" dialog:
wincmp3 w9.txt g:
Notice that for the second file path, I only entered the drive letter g:, and no path.
To get around this, I can enter this command, and it works:
wincmp3 w9.txt g:.
Notice that I entered a "." after g: . The "." directory of course means "the current directory". But so does leaving it off.
If w9.txt exists in the root of the g: drive, then I do not get this dialog, or if I enter this command, it works as well:
wincmp3 w9.txt g:w9.txt
When I enter g:w9.txt, in this case I am not entering the path, only the file name, yet it still seems to find the file. The behavior is not entirely consistent.
I should not have to do this, and I have difficulty remembering to do this, especially since other programs do not require this.
As a reminder, if I enter just a drive letter, such as G:, this does not mean the root of the g: drive. It means the current directory of the g: drive. The root of g: would be indicated by g:\.
Can you please correct this, in order to conform to the concept of "current directory" as expected?
In such cases, the file names of the files being compared are the same, only the path or location is different.
When I use wincmp from the command line, I don't want to enter the file name twice, so I usually just enter the path (including file name) for the first file, and just the path to the second file (without the file name).
But many times when I do this, I get the dialog which says "DESTINATION FILE NOT FOUND!", and I have to enter the path and name of the second file.
For example, lets suppose that the current directory on the E: drive is "data", and the current directory on the G: drive is "files", and e:\data and g:\files contains the files I am working with.
If I set my current directory to e:\data, then when I enter the following command, then I get the "DESTINATION FILE NOT FOUND!" dialog:
wincmp3 w9.txt g:
Notice that for the second file path, I only entered the drive letter g:, and no path.
To get around this, I can enter this command, and it works:
wincmp3 w9.txt g:.
Notice that I entered a "." after g: . The "." directory of course means "the current directory". But so does leaving it off.
If w9.txt exists in the root of the g: drive, then I do not get this dialog, or if I enter this command, it works as well:
wincmp3 w9.txt g:w9.txt
When I enter g:w9.txt, in this case I am not entering the path, only the file name, yet it still seems to find the file. The behavior is not entirely consistent.
I should not have to do this, and I have difficulty remembering to do this, especially since other programs do not require this.
As a reminder, if I enter just a drive letter, such as G:, this does not mean the root of the g: drive. It means the current directory of the g: drive. The root of g: would be indicated by g:\.
Can you please correct this, in order to conform to the concept of "current directory" as expected?