Sounds reasonable enough. You'd want to use the
FileSystemObject to do your dirty work. You create it using
Set objFSO = CreateObject("Scripting.FileSystemObject")
That gives you a handle to the user's file system,
including mapped network drives. You'd need to use
InputBox to get the name of the project.
strProjectName = InputBox("Enter name of project.")
If you want the folder that is created have the name of
the project to be entered, you'd use the following code
(which assumes the destination drive is S:) -
objFSO.CreateFolder "S:\" & strProjectName
To create any subfolders, you'd use the same theory:
objFSO.CreateFolder "S:\" & strProjectName & "\Subfolder1"
objFSO.CreateFolder "S:\" & strProjectName & "\Subfolder2"
etc...
I'm not sure what you mean by "templates" though.... Are
these files that already exist somewhere else and would be
compied to this new folder? If so, you could use something
like:
objFSO.CopyFile "C:/Templates/myTemplate.txt","S:\" &
strProjectName
Go to msdn.microsoft.com/library and do a search
on "FileSystemObject"...
Quote:
>-----Original Message-----
>Hi,
>Before I start trying to do this could someone please let
me know if it is
>possible to perform the following using vbscript.
>What I am trying to do is create a script that when
double clicked by a user
Quote:
>will prompt for a project name (i.e. Client5-06-2003)
which will then be
>used to create a folder on a mapped drive along with a
set of subfolders
>containing a set of predifined templates. The whole
reason for the script
Quote:
>in to simplify the archive process on our network.
>Any comments will be gladly recieved, but please be aware
that if I can do
>this it's going to be a bit of a learning curve for me.
>Regards,
>.