Hello, all!
I have 2 directories: Temp1 and Temp2.
In each of them there are files. Many files.
I need to compare each file of directory Temp1 with the file having the same name in the directory Temp2. For that perpose I downloaded diff for windows. Works fine.
So I wanted to automize the whole process: I find a pair of files to compare and do following:
Here file1 and file2 are both files with full paths.
When I start this from command line it works all right - "D:\ProjectDiff\diffoutput.txt" is written. But if I start it from my programm I get an error from diff
diff: - unknown operand ">"
If I do not redirect the output of diff and call WinExec with the last parameter 1, then I see the whole output of diff in the black window the pops up after the diff-call.
Can someone tell me what's that??!!
I have 2 directories: Temp1 and Temp2.
In each of them there are files. Many files.
I need to compare each file of directory Temp1 with the file having the same name in the directory Temp2. For that perpose I downloaded diff for windows. Works fine.
So I wanted to automize the whole process: I find a pair of files to compare and do following:
Code:
WinExec "C:Programms\Gnu\DiffUtils\bis\diff.exe" & " " & file1 & " " & file2 & " > D:\ProjectDiff\diffoutput.txt", 0
Here file1 and file2 are both files with full paths.
When I start this from command line it works all right - "D:\ProjectDiff\diffoutput.txt" is written. But if I start it from my programm I get an error from diff
diff: - unknown operand ">"
If I do not redirect the output of diff and call WinExec with the last parameter 1, then I see the whole output of diff in the black window the pops up after the diff-call.
Can someone tell me what's that??!!