Jul 3, 2002 #1 dendog Programmer Jun 28, 2001 53 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 Apr 6, 2001 393 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 Jun 28, 2001 53 US how would i use this to create a directory ona remote machine Thanx DENNIS Upvote 0 Downvote
Jul 4, 2002 #4 MKuiper Programmer Jan 29, 2002 364 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