Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo an alle,

ich möchte von Windows nach Linux kopieren und dort verschieben.

So sieht es aus und die Ergebnisse:


BOOL res=FALSE;

DWORD erg=0;

NETRESOURCE pNR;


ZeroMemory(&pNR, sizeof(pNR));


pNR.dwType=RESOURCETYPE_ANY;


pNR.lpLocalName=L"S:";


pNR.lpRemoteName=L"\\\\[LinuxServer mit Samba]\\test";


erg=WNetAddConnection2(&pNR, L"[PWD]", L"[USER]", 0);

//erg=0, Laufwerk S: ist da


erg=GetLastError();

//erg=997


res=SHCreateDirectory(GetConsoleWindow(), L"S:\\Temp\\Ziel");

//res=0, Ziel ist da


erg=GetLastError();

//erg=6


res=CopyFileEx(L"F:\\[Datei]", L"S:\\Temp\\Ziel\\[Datei]", CB_CopyProgress, NULL, FALSE, COPY_FILE_ALLOW_DECRYPTED_DESTINATION|COPY_FILE_RESTARTABLE);

//res=1 , Datei wurde kopiert


erg=GetLastError();

//erg=2


res=MoveFileEx(L"S:\\Temp\\Ziel", L"S:\\SmallJobs\\Source\\Ziel2", MOVEFILE_COPY_ALLOWED|MOVEFILE_WRITE_THROUGH);

//res=1, Ordner wurde verschoben


erg=GetLastError();

//erg=2


erg=WNetCancelConnection2(L"S:", CONNECT_UPDATE_PROFILE, TRUE);

//erg=2, S: ist weg


erg=GetLastError();

//erg=997

Es scheint also alles zu funktionieren, ist aber nicht ganz sauber.

Gibt es noch irgendwas zu beachten oder gibt es andere Wege?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.