Autor Beitrag
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 14.01.03 16:53 
hi mädels :wink:

also ... wenn ich shellexecute verwende kann ich dann auch sagen, der soll zu der endung der datei das entsprechende prog öffnen oder muss ich genau den pfad unn die exe angeben für jede endung?

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Di 14.01.03 16:59 
Hallo,

wenn es sich um eine registrierte Datei handelt, genügt der Aufruf von ShellExecute mit dem Dateinamen. Ansonsten musst Du die Datei mit dem entsprechenden Programm zusammen aufrufen.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 14.01.03 19:29 
ansionsten musst du halt der programm angeben und als parameter dann die datei die mit dem prog geöffnet werden soll !!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 17.01.03 09:06 
also das heisst, wenn der entdeckt, das es eine .pdf datei ist öffnet der dann automatisch den acrobat??

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 17.01.03 10:10 
Hallo,

ja, wenn, der Acrobat-Reader installiert ist.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 17.01.03 10:47 
genau so stell ich mir das vor :lol:

kannst du mir kleines bsp. zum code geben????
also zu shellexecute hab ich scho was gefunden wie man ein programm öffnet ... aber wie ich in verbindung mit dem ende einer datei das entsprechende prog. öffne das will ich noch wissen

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 17.01.03 10:53 
Statt dem Programm-Dateinamen gibst Du einfach die Datei an die geöffnet werden soll. Also statt zum Beispiel:

d:\Delphi 5\Bin\delphi32.exe

gibtst Du die Datei an

z:\test.pas

fertig!

Gruß
TINO
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 17.01.03 12:12 
ahhhh ok ich versuch das ma danke !!! =)

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 17.01.03 12:36 
Das hat smiegel doch schon in der ersten Antwort auf Deine Frage geschrieben!

Gruß
TINO
foxy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 17.01.03 13:57 
sry habs da nich sofort verstanden :oops:

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 17.01.03 14:46 
Kein Problem! :-)

Gruß
TINO