VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again

by Ngwane (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 10th December 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again, VB will show an error message. Therefore

API Declarations


'It could as well be a function and/or public and the procedural
'name need not be CreateFolder

Dim fso as New FileSystemObject
Dim fldr as Folder 'Note Folder is a reserved name


Rate Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again



Set fldr= fso.CreateFolder(foldername)'foldername is the name of the folder you 
                                      'wish to create. You can pasas it by 
                                      'value or by reference in in a Sub or 
                                      'function's heading declaration as in
                                      'this example

'unload objects from memory

Set fso= nothing
set fldr=nothing
Exit Sub

FolderError:
Exit Sub
End sub


Download this snippet    Add to My Saved Code

Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again Comments

No comments have been posted about Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again. Why not be the first to post a comment about Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again.

Post your comment

Subject:
Message:
0/1000 characters