I been wondering how to make a .txt document listing the files, folders in a directory on my pc (server) and was wondering how its done. There has to be an easier way then hand typing them all. Please share your thoughts. Thanks in advance, TJ
You will need to go do the dos command prompt Use 'cd' to change directories i.e. form c >> cd myfolder then type in the following *.* /s/a:-d/o/b > dir.txt
C:\Documents and Settings\Owner>CD>F:\ The system cannot find the path specified. C:\Documents and Settings\Owner>CD>F:\new e books> The syntax of the command is incorrect. For some reason its not wanting to work to get into that directory..
i figured it out thank you.. I had to change drives then go to folder. then insert as instructed. thanks again. Greenies coming you way. TJ
CD .. =Use for go up one level /s = subdirectory /a = attribute /a:-d = no directories /o = order /b = bare if you only want to find jpegs use the wild card *.jpg
Normally when you open command prompt it shows as C:\Documents and Settings\Owner> If you need to change which drive your wanting to get a listing from you will have to put: C:\Documents and Settings\Owner>cd /D F:\ **shows how to change a drive location where cd \D is to change disk and F:\ is disk your changing to. If you want to specify a folder there here is how to put direct path not that your inthe correct disk: F:\>cd F:\new e books **change to a folder in the drive for example above used new e books in the F:\ disk To create the list of files and folders in that directory here is what to put in: F:\new e books>DIR /s/a:-d/o/b > dir.txt **shows how to save file to directory with list of files as shown above by bogart - /s = subdirectory /a = attribute /a:-d = no directories /o = order /b = bare If you want to print it instead. DIR /s/a:-d/o/b > PRN Thanks, TJ