9 Mar 2007 at 21:26 #1 player player Associate Joined 18 Sep 2003 Posts 2,368 Is there an easy batch method of creating a large number of files from a text list? for example if I have: bike hike vike like I want the corresponding html files bike.html hike.html vike.html like.html Cheers
Is there an easy batch method of creating a large number of files from a text list? for example if I have: bike hike vike like I want the corresponding html files bike.html hike.html vike.html like.html Cheers
14 Mar 2007 at 10:48 #2 matja matja Associate Joined 29 Sep 2005 Posts 819 Location St Neots / Dublin Windows NT/2000/XP cmd.exe shell : for /f %i in ('type list.txt') do set 1>null 2>%i.html - which is a hacky way to do the UNIX equivalent : for i in `cat list.txt`;do touch $i.html;done Windows 9x, no clue.
Windows NT/2000/XP cmd.exe shell : for /f %i in ('type list.txt') do set 1>null 2>%i.html - which is a hacky way to do the UNIX equivalent : for i in `cat list.txt`;do touch $i.html;done Windows 9x, no clue.
14 Mar 2007 at 13:46 #3 philjayj philjayj Associate Joined 25 Jul 2004 Posts 805 Location . Is there any way to do this for folders, i.e. create a load of folders from a list?
15 Mar 2007 at 16:49 #4 player player Associate OP Joined 18 Sep 2003 Posts 2,368 matja said: Windows NT/2000/XP cmd.exe shell : for /f %i in ('type list.txt') do set 1>null 2>%i.html - which is a hacky way to do the UNIX equivalent : for i in `cat list.txt`;do touch $i.html;done Windows 9x, no clue. Click to expand... thanks for your help, worked a treat
matja said: Windows NT/2000/XP cmd.exe shell : for /f %i in ('type list.txt') do set 1>null 2>%i.html - which is a hacky way to do the UNIX equivalent : for i in `cat list.txt`;do touch $i.html;done Windows 9x, no clue. Click to expand... thanks for your help, worked a treat