| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 31808 | 2003-04-01 06:38:00 | Pipeing A Directory List To A File | mcatley (662) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 132616 | 2003-04-01 06:38:00 | Does anyone know a way to pipe a directory listing to a file that could refresh every 10 or 20 minutes. Im wanting to post it on a webserver so that i can view the process of my downloads from an external location. i need it to show the name of the file and the size. Any help? |
mcatley (662) | ||
| 132617 | 2003-04-01 08:09:00 | DOS/windows or Unix/Linux? I can't be specific otherwise. You could use the task scheduler that came with your OS to run a script containing the command every X minutes. |
bmason (508) | ||
| 132618 | 2003-04-01 08:53:00 | Open a DOS window, navigate to the folder you want to list, and type: dir *.* /v > filename.txt that will list all the files in the folder to a file called "filename.txt" :) HTH Mike. |
Mike (15) | ||
| 132619 | 2003-04-01 10:31:00 | Mike, what is that /v meant to do? | -=JM=- (16) | ||
| 132620 | 2003-04-01 11:02:00 | It gives a bit more info about the files. H:\>dir Volume in drive H is DATA Volume Serial Number is 437A-0806 Directory of H:\ KEEP <DIR> 03-27-03 9:04p keep DOWNLO~1 <DIR> 03-31-03 7:28p Downloads BRETT <DIR> 03-24-03 11:51a Brett MP3S <DIR> 02-14-03 4:03p MP3s MDK9 <DIR> 03-18-03 11:43p mdk9 2 file(s) 77,466,627 bytes 7 dir(s) 6,598.77 MB free H:\>dir /v Volume in drive H is DATA Volume Serial Number is 437A-0806 Directory of H:\ File Name Size Allocated Modified Accessed Attrib KEEP <DIR> 03-27-03 9:04p 11-28-02 D keep DOWNLO~1 <DIR> 03-31-03 7:28p 11-28-02 R D Downloads BRETT <DIR> 03-24-03 11:51a 11-28-02 D Brett MP3S <DIR> 02-14-03 4:03p 11-28-02 D MP3s MDK9 <DIR> 03-18-03 11:43p 12-22-02 D mdk9 2 file(s) 77,466,627 bytes 7 dir(s) 77,479,936 bytes allocated 6,598.77 MB free 15,390.99 MB total disk space, 57% in use H:\> |
bmason (508) | ||
| 132621 | 2003-04-01 11:03:00 | Yes, I should have made that shorter. I forgot to preview. | bmason (508) | ||
| 132622 | 2003-04-01 11:05:00 | Well that is one feature they left out of XP. | -=JM=- (16) | ||
| 132623 | 2003-04-01 11:16:00 | Is-int there a program, free download will print the directory from a windows environment without the need for the DOS command . I think Robo might of found it sometime ago, and told the group . Also if you do dir /? you can see other options like /o to put it in order . |
E.ric (351) | ||
| 132624 | 2003-04-02 06:40:00 | Yea its win xp and mikes suggestion might work i just have to see if i can get it to run on the scheduler |
mcatley (662) | ||
| 132625 | 2003-04-02 09:31:00 | I would create a DOS batch file (they still work in XP right?) that looks something like the following and get the task scheduler to run it . dirlist . bat: @echo off dir "C:\path\to\directory" > "C:\path\to\output . txt" I'm not in windows currently so I haven't tested it . |
bmason (508) | ||
| 1 2 | |||||