Is this script possible?

Discussion in 'Programming' started by chrisj, Apr 17, 2008.

  1. #1
    Need a script for a windows server that does this:

    When file xyz.txt arrives into directory C:/New/

    a new folder is created in httpdocs/<domain name>/Folders/, named XYZ.

    And a link is created in

    httpdocs/<domain name>/Folders/XYZ/

    The link looks like this:

    a href="http://<domain name>/Folders/XYZ/xyz.txt

    Then xyz.txt is moved to directory C:/Output/.
     
    chrisj, Apr 17, 2008 IP
  2. Rob Whisonant

    Rob Whisonant Well-Known Member

    Messages:
    156
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    110
    #2
    What you will need to do is create a program that checks the news folder every few minutes or so and then creates the new folders and moves the files as it finds them.

    If it was a linux server you could do this with php and cron.

    Re's
    Rob Whisonant
     
    Rob Whisonant, Apr 17, 2008 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    It cannot be real time, you have to poll for new files in the directory and create another directory.
     
    it career, Apr 18, 2008 IP
  4. BBNuno

    BBNuno Member

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    i can create that script to you
     
    BBNuno, Apr 18, 2008 IP