Why the below code does not work?
Code: Select all
dir c:\%1 /s > search.txt
It only writes the info of the drive and the platform of the OS into the file?
Moderator: DosItHelp
Code: Select all
dir c:\%1 /s > search.txt
Code: Select all
@echo off
if exist c:\search.txt ( echo File found )else (echo File not found)
pause>nul
RogerSmith wrote:Code: Select all
@echo off
if exist c:\search.txt ( echo File found )else (echo File not found)
pause>nul