Netzlaufwerk prüfen
-
Hallo,
wie kann ich das Netzlaufwerk prüfen?
Ich würde gerne vorher das Netzlaufwerk prüfen, bevor ich darauf Dateien kopiere.
Danke

-
forensuche
#include <iostream> #include <windows.h> #include <Shlwapi.h> using namespace std; int main(int argc, char *argv[]) { string tmp = "//pc5/e"; if(!PathFileExists(tmp.c_str())) { cout << "< " << tmp << " > Pfad nicht gefunden" << endl; cout << "GetLastError: " << GetLastError() << endl; } else cout << "< " << tmp << " > Pfad gefunden" << endl; system("pause"); return 0; }
-
Hallo miller_m,
ich danke Dir. Es funktioniert
