You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Metzler
Senior Member




Quoted from "hurra"
dir C:\ > liste.txt
(oder so ähnlich)
E: Nur die Ordner, hmhm.
Keine Ahnung wie des mit Windows gehen soll![]()
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
Verzeichnis von C:\WINDOWS 11.09.2005 13:16 <DIR> . 11.09.2005 13:16 <DIR> .. 30.05.2005 01:41 <DIR> addins 29.05.2005 23:51 <DIR> Application Compatibility Scripts 16.08.2005 22:20 <DIR> AppPatch 29.05.2005 23:51 <DIR> Cluster 30.05.2005 01:41 <DIR> Config 30.05.2005 01:41 <DIR> Connection Wizard 30.05.2005 01:41 <DIR> Cursors 30.05.2005 00:01 <DIR> Debug 12.06.2005 23:38 <DIR> Downloaded Installations 30.05.2005 01:41 <DIR> Driver Cache 16.08.2005 22:20 <DIR> Help 16.08.2005 22:21 <DIR> IIS Temporary Compressed Files 30.05.2005 01:44 <DIR> ime 02.09.2005 17:29 <DIR> inf 30.05.2005 01:41 <DIR> java 30.05.2005 01:44 <DIR> Media 19.06.2005 16:44 <DIR> Microsoft.NET 30.05.2005 01:41 <DIR> msagent 30.05.2005 01:41 <DIR> msapps 30.05.2005 01:41 <DIR> mui 30.05.2005 00:47 <DIR> nldrv 29.05.2005 23:53 <DIR> Offline Web Pages 13.06.2005 17:50 <DIR> PCHealth 30.05.2005 01:41 <DIR> Provisioning 16.08.2005 22:21 <DIR> Registration 30.05.2005 01:41 <DIR> repair 30.05.2005 01:41 <DIR> Resources 16.08.2005 22:20 <DIR> security 13.06.2005 17:50 <DIR> SHELLNEW 13.06.2005 18:17 <DIR> SoftwareDistribution 22.06.2005 22:27 <DIR> Sun 21.08.2005 21:00 <DIR> system 04.09.2005 13:52 <DIR> system32 30.05.2005 00:46 <DIR> TAPI 12.06.2005 23:26 <DIR> tbcdata 11.09.2005 12:32 <DIR> Temp 30.05.2005 01:44 <DIR> twain_32 29.05.2005 23:53 <DIR> Web 09.08.2005 19:47 <DIR> WinSxS 26.03.2003 07:00 707 _default.pif 30.05.2005 00:07 272 _delis32.ini 04.09.2005 12:55 0 0.log 26.03.2003 07:00 17.336 Angler.bmp 16.08.2005 22:21 23.776 aspnetocm.log 14.01.2004 03:10 163.840 BJPSUNST.EXE 26.03.2003 07:00 1.272 Blaue Spitzen 16.bmp 16.08.2005 22:21 36.433 certocm.log 30.05.2005 00:34 44 chipset.log 29.05.2005 23:50 200 cmsetacl.log 16.08.2005 22:21 54.819 comsetup.log 29.05.2005 23:55 0 control.ini 22.08.2004 17:04 69.120 daemon.dll 26.03.2003 07:00 2 desktop.ini |
|
|
Source code |
1 2 3 4 5 6 7 |
"""Liste alle Verzeichnisse im aktuellen Verzeichnis auf."""
import os
for entry in os.listdir(os.getcwd()):
if os.path.isdir(entry):
print entry
|
|
|
Source code |
1 |
ls -F | grep \/ | sed -e 's/\/$//g' > liste.txt |
:o|
|
Source code |
1 |
find -type d |
|
|
Source code |
1 |
find -type d -maxdepth 1 |
|
|
Source code |
1 |
dir | find "<DIR>" |
Quoted from "0x6c333337"
Windows-User werden hierzu greifen müssen:
![]()
Source code
1 dir | find "<DIR>"
|
|
Source code |
1 |
echo "<html><head><title>Ordner in $PWD</title></head><body>"> liste.html ; ls -FA | grep \/ | sed -e 's/\/$/\<br\>/g' >> liste.html ; echo "<br>Datum und Zeit: $(date)<br></body></html>" >> liste.html |
Quoted from "LaNcom"
Abgesehen davon findet "find" auch versteckte Verzeichnisse (was man unter Umständen nicht will - bei meinem Befehl nach Wahl einfach "ls" noch ein "-A" mitgeben)
Quoted
und ordnet die Daten nicht alphabetisch...
-