*! version 1.0 8 Aug 2018

Title

efolder -- stata module to esaily create folders and/or subfolders

Syntax

efolder
[foldername]
[,
options]

Main
foldername The name of folder you want to create.

(note) Only one folder allowed, but you can use the option sub() to creat more folder at one time.

Description

efolder provides an easy way to creat folders and/or subfolders in any geiven directory path(with the current working directory as default).
For example, we can have a folder named mainf created with four subfolder, named by a b c d respectively, in path "D:\stata15\temp\zero", eventhough the folder zero dose not exist, just using the command
efolder mainf, cd(D:\stata15\temp\zero) sub(a b c d) .
You can have a folder created freely and easily any where. And you can quickly open the mainfolder,by clik the link generated automatically, you have just created.

Options

Main

cd(string) The directory you want folders been created in,it dose not necessarily exist.

sub When this option is selected without subname(),three folder, named by f1 f2 and f3 will be created under your main folder or default path.

subname(string) Namelist of subfolders you want to created, separated by blanks,so names for subfolder should not contain blanks.

nochange If you do not have the current working directory changed, this option is needed.

Examples

efolder

efolder, cd(D:\stata15\hxs\temp2)

*Folder name with blanks can be created use cd option.

efolder, cd(D:\stata15\hxs\tem p2)

efolder, cd(D:\stata15\hxs\tem p2) s

*Using subname() option to creat subfolders.

efolder, cd(D:\stata15\hxs\tem p3) sub(2 5)

efolder tt2, sub(6 5)

efolder tt6, cd(D:\stata15\hxs\temp folder28) sub(n h j)

*Folder name with blanks can be also created use [foldername] option.

efolder t t6, cd(D:\stata15\hxs\temp folder29)

*A abbreviation way

ef temp, cd(D:\stata15\hxs\temp folder29)

Author

X.S. Hou (Hou Xinshuo),Xiangtan University,P.R. China .

Email houxinshuo@126.com

Install

ssc install efolder (to install this command)

net install efolder, from("https://github.com/houxinshuo/efolder/releases/download/efolder_v1.0")

If failing to install, you can download the ado package first, and net install it(with the path of your downloaded folder replacing ~).

https://github.com/houxinshuo/efolder/archive/efolder_v1.0.zip

net install efolder, from("~\efolder-efolder_v1.0")

See Also

NOTE: efolder also changed the working directory to the path of mainfolder(defined by foldername) automatically.

Related commands:

cd (if installed)

cdout (if installed)