Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Fr 20.07.07 12:17 
Hallo,

gibt es eine Möglichkeit um zu prüfen in welchen Verzeichniss das sich Windows
gerade befindet?
ZB: User öffnet eine XLS Datei im Verzeichnis c:\Daten\myfile.xml das ich dann
auch c:\daten\ komme?
Oder User Startet ein Spiel indy.exe in Verzeichnis c:\programme\indy\indy.exe
das ich dann auf c:\programme\indy\ komme.
pigfacejoe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 332
Erhaltene Danke: 1

Win 10, Ubuntu
Delphi,Javascript, PHP, Java, Python
BeitragVerfasst: Fr 20.07.07 12:28 
Für was brauchste denn sowas?^^
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 20.07.07 12:31 
Die Frage würd mich auch mal brennend interessieren ... :eyes:

Unter Windows gibt es nicht DAS Verzeichnis, sondern nur eine Reihe von Verzeichnissen - genaugenommen: Für jeden Prozess eines. Es gibt da zwar Möglichkeiten, das für jeden Prozess auszulesen, aber das sollte spätestens ab Vista Probleme machen ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
galagher
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2562
Erhaltene Danke: 46

Windows 10 Home
Delphi 10.1 Starter, Lazarus 2.0.6
BeitragVerfasst: Fr 20.07.07 17:18 
user profile iconpigfacejoe hat folgendes geschrieben:
Für was brauchste denn sowas?^^

Verstehe ich schon (zumindest zum Teil), ich hätte zB. gerne gewusst, was das Verzeichnis - der Ordner - ist, den der User mit dem Explorer geöffnet hat. Wenn er aber nicht den Explorer als Ordner- und Datei-"Manager" nutzt, sondern ein anderes Programm, was ist dann der Windows-Ordner?

Ich verstehe das so: Was ist ***Der aktuelle Ordner*** in Windows? Nicht der eines Prozesses, sondern der des Betriebssytems.

Genau das interessiert mich auch - kann man immer mal brauchen!

_________________
gedunstig war's - und fahle wornen zerschellten karsig im gestrock. oh graus, es gloomt der jabberwock - und die graisligen gulpen nurmen!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 20.07.07 17:59 
Genau DEN Windows-Ordner gibt's nicht. Nur das Verzeichnis, in dem Windows installiert ist, aber das fragt man anders ab.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.