Hello everyone,
How can I create a new folder using vb6 code ?
Printable View
Hello everyone,
How can I create a new folder using vb6 code ?
Make sure you have admin rights else you will get an error 75. ;)Code:MkDir "c:\temp2" 'or what ever name you want it to be
And to make multiple folders in one swell foopvb 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
Thanks Keithuk !
Just saw your post Hack ! Thanks !