Autor Beitrag
AScomp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 162


Delphi 5, Delphi 7, Delphi 2007, Delphi 2009, Delphi XE, Delphi 10 Seattle
BeitragVerfasst: Mo 28.12.09 21:49 
Hallo,

folgendes Problem: Meine Anwendung soll auf einen Netzwerkordner zugreifen, doch möglicherweise ist zum Zeitpunkt des Zugriffs das Netzwerk noch nicht verbunden (das Netzwerk kann auch mit Zugangsdaten/Passwort geschützt sein).

Jetzt gibt es ja die Möglichkeit, den WNetConnectionDialog zu verwenden - allerdings soll meine Anwendung die Anmeldung ohne Benutzereingabe durchführen, also automatisch, ohne Dialog. Dazu gibt es ja WNetAddConnection2.

Das Hauptproblem an der Sache ist aber, dass meine Anwendung mit Administratorrechten läuft und somit die Netzwerk-Zuweisungen/Laufwerk-Mappings nicht kennt. Kann ich also entweder das Mapping/Netzwerk für den Administrator sichtbar machen oder alternativ das Netzwerk verbinden, aber ohne Laufwerkszuordnung?

Hat mir jemand dazu einen Tipp?

Danke schonmal!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 02.01.10 02:30 
Moin!

Hilft dir das Stichwort UNC-Pfad (\\Server\Share\Folder\File.ext) weiter? :gruebel: Ansonsten habe ich noch nicht verstanden, wo denn genau das Problem ist... :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
AScomp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 162


Delphi 5, Delphi 7, Delphi 2007, Delphi 2009, Delphi XE, Delphi 10 Seattle
BeitragVerfasst: Sa 02.01.10 02:32 
Hallo Narses,

war etwas schwer zu erklären, allerdings bin ich später durch Zufall auf einen MS-Artikel gestoßen, der die ganze Problematik beschreibt und ein Work-Around bietet:

support.microsoft.co...24&x=15&y=14