Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

directory creation script

Status
Not open for further replies.

flashbbeb

MIS
Mar 29, 2005
106
US
As part of my work in creating web-based training, I create a directory and corresponding subdirectories (basic WinXP Windows Explorer window) for each training presentation.

Is there a script I can use to create this basic tree structure each time I create a presentation, so I don't have to manually add the new folders each time?

The tree:

WBT
|-----Administration
|---------------Review
|-----Development
|---------------Audio
|---------------Assessments
|---------------Visual Media
|-----Final

Thanks!

 
There is good old vb command MkDir, together with Dir, RmDir and other FileSystem commands.
Afrer referencing Microsoft Scripting Runtime (Scripting) you have CreateFolder and other folder/file properties and methods available.

combo
 
I have almost no vb experience. Is there anyway you could help me out with the script?

Thanks!
 
Since you say you almost no VB experience, then it might be easier to create a batch file.

Using a text editor, enter the following:

MKDIR WBT
MKDIR WBT\Administration
MKDIR WBT\Administration\Review
MKDIR WBT\Development
MKDIR WBT\Development\Audio
MKDIR WBT\Development\Assessments
MKDIR "WBT\Development\Visual Media"
MKDIR WBT\Final

Save the file as CreateTrainingDir.bat (or whatever you want as long as the suffix is .bat)

Now all you have to do is run the .bat file in the directory where you want these directories created. You can run it from Windows Explorer by double-clicking on the file.
 
My initial feeling is that you could have a dedicated menu item or toolbar in powerpoint that manages the process of saving. So the consequences:
1. a powerpoint add-in is needed that creates this item and manages the process of directory creation and saving active presentation,
2. you will have to write a short programme in VBA in powerpoint that does this task.

There is vba dedicated forum707, where you can get more vba help, but you have to have basic vba knowledge and more precisely define your problem. For vba commands, just open excel file, go to vb editor and display object browser. F1 key will guide you through help (pp is not the best in it, so I recommend excel, however vba is the same).

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top