Saved Bookmarks
| 1. |
Solve : concatenate list? |
|
Answer» I'm using this batch file : @dir/w %1 > c:\File_list\filelist.txt which gives me this Volume in drive C is OS Volume Serial NUMBER is XXX-XXXX Directory of C:\DELL [.] [..] ATAPI.EXE DELLBUTN.HTM DELLCIRC.ICO E-WTRMRK.GIF [r069r] SOL_CENT.JPG USBS3KB.REG UWAKEOFF.exe UWAKEON.exe 8 File(s) 271,522 bytes 3 Dir(s) 130,348,281,856 bytes free and edit it to give me something like this C:\DELL ATAPI.EXE DELLBUTN.HTM DELLCIRC.ICO E-WTRMRK.GIF SOL_CENT.JPG USBS3KB.REG UWAKEOFF.exe UWAKEON.exe This is an example of a small folder, I'm normally dealing with larger numbers. Is ther a quicker way to ge this, or nearer this, full path plus LIST of files with NO details. thanksReplace dir /w with dir /b. Iif you don't want directories (folders) to be listed USE the /a-d switch. It's all in the DIR help which you can access by opening a command window and typing DIR /? Code: [Select]F:\Dtest>dir /w Volume in drive F is IDE02 Volume Serial Number is E0E2-3A64 Directory of F:\Dtest [.] [..] avih_aac.bin avih_adpcm.bin avih_jpeg_hufftables.bin avih_mp3cbr.bin avih_ms_adpcm.bin avih_noaudio.bin avih_pcm.bin avih_ulaw.bin copying.txt FccMap.default.ini FccMap.ini lame_enc.dll libfaad2.dll libMAD.dll Mp4Cam2AVI.exe playlist.asx settings.ini xvidcore.dll [_help] 18 File(s) 2,162,525 bytes 3 Dir(s) 96,652,644,352 bytes free Code: [Select]F:\Dtest>dir /b /a-d avih_aac.bin avih_adpcm.bin avih_jpeg_hufftables.bin avih_mp3cbr.bin avih_ms_adpcm.bin avih_noaudio.bin avih_pcm.bin avih_ulaw.bin copying.txt FccMap.default.ini FccMap.ini lame_enc.dll libfaad2.dll libMAD.dll Mp4Cam2AVI.exe playlist.asx settings.ini xvidcore.dllThanks, I did GET as far as this but perhaps I didn't make the question clear enough. the reference to concatenate in the subject line was to whether the file list can have the full path in the FIRST (or last) line. For instance, can I write to the file once and then with the full path only without overwriting. C:\DELL ATAPI.EXE DELLBUTN.HTM DELLCIRC.ICO E-WTRMRK.GIF SOL_CENT.JPG USBS3KB.REG UWAKEOFF.exe UWAKEON.excreate file, overwriting any file with same name Code: [Select]dir /b > list.txt create file if it does not exist, append to file if it already exists Code: [Select]dir /b >> list.txtThanks, that's what I was looking for. |
|