I need a script that can automatically create subfolders.
For example:
I have a base folder stored in c:/upload
. I will go to the line script: /2011/23/12/3
2011/23/12/3. The script should parse this line and create folders and subfolders in c:/upload
, just like the line (should be c:/upload/2011/23/12/3
)
How can i do this?
Now I use if / else and check if the folder / subfolder exists, but the script is tooooo big and this is hard to handle.
Evgeniy Labunskiy
source share