mg1234s
19.08.2005, 12:17
Hallo zusammen,
ich suche die Möglichkeit bei einem Dir, daß z.B.
c:\test\Mein Dir\ heißt
das aktuelle Dir. (Mein Dir) in eine Variable abzulegen.
Den kompletten Pfad abzulegen ist ja kein Problem, aber nur das aktuelle Dir abzulegen bekomme ich einfach nicht hin.
Es gibt zwar diese Feldtrenner aber da ist leider keiner bei der mir nur den Dirnamen filtert
%~I Expands %I which removes any surrounding quotation marks ("").
%~fI Expands %I to a fully qualified path name.
%~dI Expands %I to a drive letter only.
%~pI Expands %I to a path only.
%~nI Expands %I to a file name only.
%~xI Expands %I to a file extension only.
%~sI Expands path to contain short names only.
%~aI Expands %I to the file attributes of file.
%~tI Expands %I to the date and time of file.
%~zI Expands %I to the size of file.
%~$PATH: I Searches the directories listed in the PATH environment variable and expands %I to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found by the search, this modifier expands to the empty string.
Gruß Mg1234s
ich suche die Möglichkeit bei einem Dir, daß z.B.
c:\test\Mein Dir\ heißt
das aktuelle Dir. (Mein Dir) in eine Variable abzulegen.
Den kompletten Pfad abzulegen ist ja kein Problem, aber nur das aktuelle Dir abzulegen bekomme ich einfach nicht hin.
Es gibt zwar diese Feldtrenner aber da ist leider keiner bei der mir nur den Dirnamen filtert
%~I Expands %I which removes any surrounding quotation marks ("").
%~fI Expands %I to a fully qualified path name.
%~dI Expands %I to a drive letter only.
%~pI Expands %I to a path only.
%~nI Expands %I to a file name only.
%~xI Expands %I to a file extension only.
%~sI Expands path to contain short names only.
%~aI Expands %I to the file attributes of file.
%~tI Expands %I to the date and time of file.
%~zI Expands %I to the size of file.
%~$PATH: I Searches the directories listed in the PATH environment variable and expands %I to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found by the search, this modifier expands to the empty string.
Gruß Mg1234s