Difference between revisions of "DOS Directory File List"
Jump to navigation
Jump to search
Chris Huxley (talk | contribs) |
Chris Huxley (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | <ol> | |
+ | <li> Open the DOS command prompt. | ||
+ | <li> If necessary, change the drive location (example syntax: ''<tt>D:</tt>'' then press Enter) | ||
+ | <li> Navigate to the folder location where you would like to write a list of the folders contained within it (example syntax: ''<tt>cd D:\Example\TUFLOW\model\grid</tt>'' then press Enter) | ||
+ | <li> Write a text file listing the folder contents using the following syntax ''<tt>dir > filename.txt</tt>'' | ||
+ | </ol> | ||
+ | A text file called ''<tt>filename.txt</tt>'' will be written containing a list of all the files contained within the folder. | ||
+ | This DOS file report is useful during TUFLOW modelling if topography ALS data has been provided in tile format for a catchment. In some situations over 500 *.asc files may make up a complete study area. Rather than stitching the data into a single topography dataset data layering within the TGC can be used to read each *.asc ALS tile into the TUFLOW flood model. | ||
<ol> | <ol> | ||
− | <li> Open | + | <li> Open ''<tt>filename.txt</tt>'' in Notepad++ or UltraEdit. |
− | + | <li> Turn on column edit mode. this is done in Notepad++ by holding in ''<tt>Alt</tt>'' prior to and during a selection | |
− | <li> | ||
− | |||
− |
Revision as of 15:51, 14 February 2018
- Open the DOS command prompt.
- If necessary, change the drive location (example syntax: D: then press Enter)
- Navigate to the folder location where you would like to write a list of the folders contained within it (example syntax: cd D:\Example\TUFLOW\model\grid then press Enter)
- Write a text file listing the folder contents using the following syntax dir > filename.txt
A text file called filename.txt will be written containing a list of all the files contained within the folder.
This DOS file report is useful during TUFLOW modelling if topography ALS data has been provided in tile format for a catchment. In some situations over 500 *.asc files may make up a complete study area. Rather than stitching the data into a single topography dataset data layering within the TGC can be used to read each *.asc ALS tile into the TUFLOW flood model.
- Open filename.txt in Notepad++ or UltraEdit.
- Turn on column edit mode. this is done in Notepad++ by holding in Alt prior to and during a selection