FC error

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
drgt
Posts: 158
Joined: 21 Sep 2010 02:22
Location: Greece

FC error

#1 Post by drgt » 03 Sep 2018 03:05

Running

Code: Select all

@echo off

set d1=C:\Test\1
set d2=C:\Test\2

echo -----
echo :1 2: 
echo -----

for /f "delims=" %%i in ('dir /b/a-d "%d1%\*" "%d2%\*"^|sort') do (
  call set "$i=%%$i:%%i=%%"
  if defined $i (
    if not exist "%d1%\%%i" (echo :. +: %%i) else (
    if not exist "%d2%\%%i" (echo :+ .: %%i) else (
    fc "%d1%\%%i" "%d2%\%%i" >nul&& echo := =: %%i|| echo :^< ^>: %%i)))
  set "$i=%%i"
)
I get:
FC: Insufficient number of file specifications
Note: Files start with 01_..., 02_..... etc

drgt
Posts: 158
Joined: 21 Sep 2010 02:22
Location: Greece

FC error

#2 Post by drgt » 03 Sep 2018 03:24

DISREGARD, SORRY, MY BAD.
ISSUED FC COMMAND INSTEAD OF BATCH FILE NAME

Post Reply