|
-
Jun 13th, 2010, 06:14 AM
#1
Thread Starter
Lively Member
[RESOLVED] Create Folder
Hello everyone,
How can I create a new folder using vb6 code ?
MOBO: Asrock X58 Extreme
CPU : Core i7 950 @ 3.07Ghz
Ram : 8GB
Hard Drive : 1.5 TB (1 TB, 500GB)
Graphics : ATI Radeon HD 5670
Dual Boot : Windows XP Home, Windows 7 Ultimate x64
       
_____________________
If a reply has helped you, please consider rating it. 
-
Jun 13th, 2010, 06:30 AM
#2
Re: Create Folder
Code:
MkDir "c:\temp2" 'or what ever name you want it to be
Make sure you have admin rights else you will get an error 75.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Jun 13th, 2010, 06:39 AM
#3
Re: Create Folder
And to make multiple folders in one swell foop
vb Code:
Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" _
(ByVal lpPath As String) As Long
Private Sub Command1_Click()
'the will create the directory "c:\this\is\a\test\directory\"
'if it doesn't already exist
MakeSureDirectoryPathExists "c:\this\is\a\test\directory\"
End Sub
-
Jun 13th, 2010, 06:40 AM
#4
Thread Starter
Lively Member
MOBO: Asrock X58 Extreme
CPU : Core i7 950 @ 3.07Ghz
Ram : 8GB
Hard Drive : 1.5 TB (1 TB, 500GB)
Graphics : ATI Radeon HD 5670
Dual Boot : Windows XP Home, Windows 7 Ultimate x64
       
_____________________
If a reply has helped you, please consider rating it. 
-
Jun 13th, 2010, 06:43 AM
#5
Thread Starter
Lively Member
Re: Create Folder
Just saw your post Hack ! Thanks !
MOBO: Asrock X58 Extreme
CPU : Core i7 950 @ 3.07Ghz
Ram : 8GB
Hard Drive : 1.5 TB (1 TB, 500GB)
Graphics : ATI Radeon HD 5670
Dual Boot : Windows XP Home, Windows 7 Ultimate x64
       
_____________________
If a reply has helped you, please consider rating it. 
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|