| | |
CreateDirectory
![]() |
•
•
Join Date: Nov 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi All,
I have to create a directory by using Windows API, can anybody give me small code snippet for this. I am able to do it File System Objet but want to do it by using Win API.
Can any body atleast tell me in which class or dll this will be available or a small code snippet if possible.
Thanks,
Aleem Mohammad.
I have to create a directory by using Windows API, can anybody give me small code snippet for this. I am able to do it File System Objet but want to do it by using Win API.
Can any body atleast tell me in which class or dll this will be available or a small code snippet if possible.
Thanks,
Aleem Mohammad.
Why don't you use
Ok. If you want to do it hard way:
just make sure to check return value for errors.
VB Syntax (Toggle Plain Text)
MkDir "C:\TempDir"
VB Syntax (Toggle Plain Text)
Private Declare Function CreateDirectory Lib "shell32.dll" Alias "SHCreateDirectoryExA" (ByVal hwnd As Long, ByVal pszPath As String, ByVal psa As Any) As Long CreateDirectory Me.hWnd, "C:\TempDir", Nothing
Teme64 @ Windows Developer Blog
![]() |
Similar Threads
- Having trouble calling certain functions (C++)
- Uploading files Access Denied Error (ASP.NET)
- how to store the uploaded txt or .doc or jpg file in to webserver by dynamically (ASP.NET)
- Saving Excel Spreadsheet using ADO.net gives inconsistent results (C#)
- Problems with Directory.Move (C#)
- Console App, Spawned From Service, File IO (C#)
- Quick directory question (C#)
- make directory (C++)
- loads htm but not aspx (ASP.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: error msg when try to install vb6 runtime
- Next Thread: VB6 ACCESS database Connection Query
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





