Solved compare a list of comma separated file names in a directory

October 27, 2014 at 07:27:13
Specs: Windows 7
I need to compare a list of comma separated file names in a directory and return if any of the file is missing.

can any one help me in this..

Thanks in advance


See More: compare a list of comma separated file names in a directory

Report •

#1
October 27, 2014 at 08:42:58
Try FC from the command prompt.

http://ss64.com/nt/fc.html

Nigel

Wind slow


Report •

#2
October 27, 2014 at 20:10:22
Assumptions made freely:
for %%a in ("a","b.txt","c.bat") do if not exist c:\test\%%a echo NO: %%a

Report •

#3
October 27, 2014 at 22:56:21
✔ Best Answer
::====== script starts here ===============
::
:: mo.bat 2014-10-28 12:51:52.63
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

:main
for /f "tokens=* delims= " %%a in (myfile) do (
if not exist %%a echo %%a
) >> NEWFILE
goto :eof
::====== script ends here =================

=====================
M2 Golden-Triangle


Report •
Related Solutions


Ask Question