use winDiff in msdos


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers use winDiff in msdos
# 1  
Old 01-07-2008
use winDiff in msdos

compare A.txt with B.txt using windiff and display an output of no configuration found if both txt file is the same and the output will display the differences if the files are different.

how should i program it by using sed.exe and winDiff.exe?
# 2  
Old 01-08-2008
Hi Rita,

you can use %ERRORLEVEL% in windows. take a if conditional for this errorlevel and decide whether compare success/failure.
Errorlevels are given for every command.
eg:
C:\>echo ilan
ilan

C:\>echo %ERRORLEVEL%
0

C:\>

you can use the same way with windiff etc...

-ilan
# 3  
Old 01-08-2008
My batch script (1)

ECHO off
set path=%PATH%;D:\DS

d:\ds\windiff D:\11\Share\output_A.txt d:\11\Share\output_B.txt

How should i program in order to take the difference after windiff have compare to another file ( eg : output_C.txt )?

del tmp*.txt


My batch script (2)

ECHO off
set path=%PATH%;D:\DS

call D:\testA
call D:\testB

::Compare the output of testA and testB

d:\ds\windiff D:\output_A.txt d:\11\Share\output_B.txt > goto login.cfg_ERROR

del tmp*.txt

result on command window for batch file 2: The system cannot find the batch label specified - login.cfg_ERROR

Last edited by rita1985; 01-15-2008 at 05:17 AM..
# 4  
Old 01-10-2008
Quote:
Originally Posted by ilan
Hi Rita,

you can use %ERRORLEVEL% in windows. take a if conditional for this errorlevel and decide whether compare success/failure.
Errorlevels are given for every command.
eg:
C:\>echo ilan
ilan

C:\>echo %ERRORLEVEL%
0

C:\>

you can use the same way with windiff etc...

-ilan
Hmm sorry. I dun really understand what u mean Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Evaluate uUNIX and MSDOS shell script features

I need to select the main features of shell scripting on UNIX and evaluate their MSDOS equivalent. can anyone suggest some online resources articles anything?? Thanks in advance (0 Replies)
Discussion started by: deemon111
0 Replies

2. UNIX for Dummies Questions & Answers

batch file using sed command in msdos

<! pad_meth: <! program = "/usr/lib/drivers/pse/x29d -p" how should i program it in oder to display this: <! pad_meth: <! program = "/usr/lib/drivers/pse/x29d -p" ;) (1 Reply)
Discussion started by: rita1985
1 Replies

3. Windows & DOS: Issues & Discussions

MSDOS RESTORE (pre-1995)

I realise that this is probably not the best place to ask DOS questions, but I wouldn't have a clue where to post DOS-related matters The inevitable has happened and I've been asked to restore some files from a 23/11/1995 MSDOS backup (I think it was DOS 5.x or 6.x at the time). I'm... (1 Reply)
Discussion started by: mfreemantle
1 Replies
Login or Register to Ask a Question