i need script first finds files in directory string, uses filenames in variable used in script. so:
- find files , filenames
- saves file?
- start kind of loop? changes variable executes belonging script
- repeat till filenames have been used.
my code here..
@echo off /r c:\work %%g in (*) @findstr /m /s "string" > filenames.txt %%g set var1=0 %%g in (*) ( var1=<filenames.txt (???) script script
i haven't writen "script" myself , friend me it, if see need wait until can other computer @ home.
thanks on beforehand!
- find files , filenames
- saves file
set "search=what want find" (for /f "delims=" %%a in ('dir /a-d /b /s "c:\work" ^| findstr "%search%"') echo (%%~fa)>filenames.txt
- start kind of loop? changes variable executes belonging script
- repeat till filenames have been used.
for /f "delims=" %%a in (filenames.txt) ( rem here inside loop rem until file names filenames.txt processed )
Comments
Post a Comment