VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CreateFolders

Gerald Bryant  (1 Submission)   VB function enhancement   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Make nested subfolders in a single method.

Inputs
sPath: Fully-qualified absolute or relative path you wish to create. 'Example 1: \\NetworkVolume\NetworkShare\ExistingDir\NewDir\NewSubdir\NewSubDir'Example 2: C:\Program Files\a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z

Assumes
Add reference "Microsoft Scripting Runtime" (scrrun.dll) available at http://www.microsoft.com/scripting or with VB6.

Side Effects
Number 70, Permission Denied error will occur is write access or directory create access is not allowed for the drive for that user. 'Reference "Microsoft Scripting Runtime" (scrrun.dll) available at http://www.microsoft.com/scripting or with VB6.

API Declarations
Add reference "Microsoft Scripting Runtime" (scrrun.dll) available at http://www.microsoft.com/scripting or with VB6.

Rate CreateFolders (40(40 Vote))
CreateFolders.bas

CreateFolders Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters