Search found 2 matches
- 08 Feb 2010 15:06
- Forum: DOS Batch Forum
- Topic: Find specific files from a directory and copy to a newfolder
- Replies: 2
- Views: 4822
Re: Find specific files from a directory and copy to a newfolder
Thank you very much After a lot of tries i made work this simplified code SetLocal EnableDelayedExpansion for /r c:\ %%s in (*quiz*.htm) do ( set /a v+=1 copy "%%~dps%%~nxs" D:\quizes\!v!.htm) You have done this for both files, i am still very curuious about batch files, they help a lot in...
- 08 Feb 2010 13:21
- Forum: DOS Batch Forum
- Topic: Find specific files from a directory and copy to a newfolder
- Replies: 2
- Views: 4822
Find specific files from a directory and copy to a newfolder
I want to find specific files (*quiz*.htm or *.log) from all subdirectories and copy them to a folder, all files should have sepearter name (1.htm,2.htm,3.htm,4.htm.....) how can i do this? i used this first c:\>xcopy *quiz*.htm d:\myfolder /e but it copies all empty folders then i am trying this bu...