2007/03/12

How to schedule the deletes task

  1. Open C drive. Create a new folder named “tool” and copy “mydel.bat” into “C:\tool”
  2. Open “mydel.bat” using NOTEPAD. Change C:\ “documents and settings”\Cindy\“my document”\test to the path of back up folder. E.g C:\masslynx\systembackup new line: C:\masslynx\systembackup\*.* save the file.

    echo y del C:\"Documents and Settings"\Cindy\"My Documents"\test\*.*

  3. Run schedule task
    Start
    All programs
    Accessories
    System tools
    Schedule task
  4. Click “add scheduled task”
    next
    Brower to find the file at “C:\tool\mydel.bat”
    schedule time (two steps)
    User name is on the screen or = full computer name\user name
  5. Right click “my computer”
    Properties
    Find computer name
    User name is the log in name
    Password is the log in password
    Click finished without check the option of “open advanced….”

2007/03/08

my $line_old = $_; my $line = $line_old; my @lines = split (/,/ , $line); foreach my $item (@lines) { do something } $line = join ("," , @lines); ####split does not take the trailing empty element if ($old_line =~ /.*(,+)$/) { $line .= $1; }