Autor Beitrag
klemme
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 37



BeitragVerfasst: Sa 27.01.07 22:43 
HI

kann mir jmd sagen wie man mit Delphi ordner im lokalen LAN freigeben kann?

danke im vorraus

_________________
ich werde das Unternehmen übernehmen
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 27.01.07 22:56 
Es gibt bestimmt auch ne Win-API-Lösung, aber so gehts auch:

ausblenden Delphi-Quelltext
1:
ShellExecute(..., 'net share Freigabe=C:\sonstwas', ...);					

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
klemme Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 37



BeitragVerfasst: Sa 27.01.07 23:13 
sry aber gehts auch nen bissl genauer?
an welcher stelle soll ich das einsetzten und wie solln die anderen Parameter aussehen

so etwa???

ausblenden Delphi-Quelltext
1:
shellexecute(application.Handle,'open','net share Freigabe=C:\sonstwas',nil,nil,sw_normal);					

_________________
ich werde das Unternehmen übernehmen
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 27.01.07 23:29 
user profile iconklemme hat folgendes geschrieben:

ausblenden Delphi-Quelltext
1:
shellexecute(application.Handle,'open','net share Freigabe=C:\sonstwas',nil,nil,sw_normal);					

Genau.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.