Re: info o subore v BAT

From: Petr Pokorny <mail (zavinac)>
Date: 08. 02. 2006, 13:45 CET
Miro S <mirose.konfera@gmail.com>:


> Zdravim,
> 
> potreboval by som v BAT subore nejakym sposobom porovnat
> dva existujuce subory na hdd (kazdy v inom adresari).
> Cielom je zistit, ci tie subory su rovnake,  identicke.
> Vysledok porovnania spusti nejaku akciu (ak subor A nieje identicky
> zo suborom B, urob.....)


@echo off
set file1=c:\fileA.txt
set file2=d:\fileB.txt
echo n | comp "%file1%" "%file2%" 2> nul
if errorlevel 1 goto rozdil
goto end

:rozdil
echo.
echo jsou ruzny...
echo neco s tim udelame
echo.

:end


-pp21-
Received on Wed, 8 Feb 2006 13:45:50 +0100

This archive was generated by hypermail 2.1.8 : 08. 02. 2006, 13:46 CET