Ok. I wonder how to take the list from the startdir and go for each element, what would you suggest put the list into an array and push through the array till it is empty?:
21.08.2009 11:03 <DIR> Administrator
08.01.2010 13:38 <DIR> administrator.Domain
06.07.2009 08:27 <DIR> All Users
16.06.2009 13:08 <DIR> user
18.06.2009 13:08 <DIR> user2
Namely administrator, administrator.Domain, user and so on.
So i would construct a new string?
$subdir = $startdir . $user . $Tempdir;
Where $startdir = "Dokumente/ und/ Einstellungen";
$user = @array[0]
$tempdir = "Lokale\ Einstellungen\TEMP";
Construct the path for user1
#e.g. "C:/Dokumente\ und\ Einstellungen/user/Lokale\ Einstellungen/Tem
+p"
delete recursive
construct the path for user2
#e.g. "C:/Dokumente\ und\ Einstellungen/user/Lokale\ Einstellungen/Tem
+p"
construct the path for lastuser
...
My Problem is now putting the whole together ...
Any hints?
MH
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.