Help to develop a batch

November 12, 2010 at 09:14:25
Specs: Windows 2003 Server, 1gb
Hello guys! I need to do a script to check if a file exists in a directory/subdirectory then salve the result in a txt file. This txt file does not be overwrited. Any one could help me?

See More: Help to develop a batch

Report •

#1
November 12, 2010 at 13:05:59
DIR /b "P:\a\t\h" | Find "FileName"
IF "%ErrorLevel%"=="0" ECHO File Found >> File.log

Can I put a question here?


Report •

#2
November 12, 2010 at 13:31:47
@dir /B /S "C:\FileName" 1>nul 2>&1 && echo.  File "FileName" found >> File.log


Report •
Related Solutions


Ask Question