Computing.Net > Forums > Programming > Making folder in VBS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Making folder in VBS

Reply to Message Icon

Name: netcreator.dk
Date: November 29, 2004 at 02:46:47 Pacific
OS: Windows XP SP2
CPU/Ram: 3,4 P4
Comment:

Hello there

I want to make a script that makes a new folder, by asking the user what to call the folder. And then it should automaticly create 4 subfolders in this folder.




Sponsored Link
Ads by Google

Response Number 1
Name: abc123456789
Date: November 29, 2004 at 16:03:12 Pacific
Reply:


dim filesys, folder, path
path = "c:\folder"
set filesys=CreateObject("Scripting.FileSystemObject")
If Not filesys.FolderExists(path) Then
Set folder = filesys.CreateFolder(path)
End If



0

Response Number 2
Name: abc123456789
Date: November 29, 2004 at 16:04:11 Pacific
Reply:

Here is the code to create one folder:

dim filesys, folder, path
path = "c:\folder"
set filesys=CreateObject("Scripting.FileSystemObject")
If Not filesys.FolderExists(path) Then
Set folder = filesys.CreateFolder(path)
End If



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


C++ command or string or ... Windows 2003 (adding user...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Making folder in VBS

DOS Printing in VB on Dot Matrix Pr www.computing.net/answers/programming/dos-printing-in-vb-on-dot-matrix-pr/6867.html

Making and deleting folders in C++ www.computing.net/answers/programming/making-and-deleting-folders-in-c/3490.html

making executable file in VB www.computing.net/answers/programming/making-executable-file-in-vb/6264.html