Search This Blog

Friday, July 2, 2010

Dos Command useful for Projects to handle files and folders

 Create List of folders from Dos Command from notepad
Click Start / run / cmd {OK}
make it happen by typing this command:
> for /F "tokens=*" %* in (c:\folders.txt) do @md "D:\My Folders\%*"
> {Enter}



.bat files copy and paste file into multiple folders windows xp
(3* for folder start with 3) 
@echo off
for /f %%j in ('dir /B /AD  E:\<target path to paste>3*') do (
copy <target filename for folder> <
target path >\%%j)
pause