MSDIRB: Stata module to create a dataset of file names from the output of a MS-DOS dir/b command (Windows only)
Roger Newson
Statistical Software Components from Boston College Department of Economics
Abstract:
msdirb inputs a directory specification and a file list specification recognised by MS-DOS, and generates in the memory a new Stata dataset, with 1 observation per file in the list, and data on the directory and/or the name of the file. It works by using the MS-DOS dir command, with the switch /b to specify display of filenames only and an output file, and using insheet to input the filenames from this output file into a Stata dataset in memory. This new Stata dataset can then be used for mass-processing of the specified files. This is frequently done by reading the values of the file variables into Stata macros with numbered macro names, and then by looping over these numbered macro names to process the files one at a time. msdirb is designed to work only under a Microsoft Windows operating environment.
Language: Stata
Requires: Stata version 10.0 for Windows
Keywords: data management; Windows; file list (search for similar items in EconPapers)
Date: 2014-10-04, Revised 2015-05-07
Note: This module may be installed from within Stata by typing "ssc install msdirb". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/m/msdirb.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msdirb.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lmsdirb.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lmsdirb.sthlp help file (text/plain)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s457923
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().