Jul 3, 2002 #1 dendog Programmer Joined Jun 28, 2001 Messages 53 Location US Is there any API in C++ or anything in the SQL API which I can use to create new directories on a remote machine. Thank you in advance. DENNIS
Is there any API in C++ or anything in the SQL API which I can use to create new directories on a remote machine. Thank you in advance. DENNIS
Jul 3, 2002 #2 Leibnitz Programmer Joined Apr 6, 2001 Messages 393 Location CA Try: BOOL CreateDirectory( LPCTSTR lpPathName, // directory name LPSECURITY_ATTRIBUTES lpSecurityAttributes // SD ); the "LPSECURITY_ATTRIBUTES" parameter can be set to "NULL". Upvote 0 Downvote
Try: BOOL CreateDirectory( LPCTSTR lpPathName, // directory name LPSECURITY_ATTRIBUTES lpSecurityAttributes // SD ); the "LPSECURITY_ATTRIBUTES" parameter can be set to "NULL".
Jul 4, 2002 Thread starter #3 dendog Programmer Joined Jun 28, 2001 Messages 53 Location US how would i use this to create a directory ona remote machine Thanx DENNIS Upvote 0 Downvote
Jul 4, 2002 #4 MKuiper Programmer Joined Jan 29, 2002 Messages 364 Location NL Code: #include <windows.h> if ( !CreateDirectory ( "\\\\ServerName\\ShareName\\DirName", NULL )) { // Failure DWORD dwCauseOfFailure = GetLastError ( ); ... } Marcel Upvote 0 Downvote
Code: #include <windows.h> if ( !CreateDirectory ( "\\\\ServerName\\ShareName\\DirName", NULL )) { // Failure DWORD dwCauseOfFailure = GetLastError ( ); ... } Marcel