*! D:\Dropbox\Stata15ado\personal/cdautouse.ado 2017-08-18 Scott Long
*! d:/datasets/
program define cdautouse
   version 13
   args details
   * create S_cd globals
   macro drop S_cdauto S_cdcmd S_cddata S_cdnote S_cdwd
   global S_cdcmd  "cdautouse"
   global S_cdauto "use binlfp4, clear"
   global S_cddata "d:/datasets/"
   global S_cdnote ""
   global S_cdurl  ""
   global S_cduser ""
   global S_cdwd   "d:/datasets/"
   * change to new working directory
   cd "d:/datasets/"
   * list S_cd macros
   if "`details'"!="" cdinfo
   * autorun set, run ado file
   if "$S_cdauto"!="" {
      noi di ". $S_cdauto"
      cap noi $S_cdauto
   }
end
exit