Okay. First, I assume you are using Win XP or Vista, right? The "MS DOS prompt" has been a command shell for quite a while. But anyway, does your code change to the correct directory? The scheduled copy might be starting in a default directory (like your user folder), and thus be in the wrong place.

I don't think this is Perl problem, since you've demonstrated it works. I suspect it's either a permission problem, or it's starting in the wrong directory. Try checking the current directory from the script that's being run from the Windows Task Scheduler. Also try adding some lines to create or delete files, along with the result.

--marmot

In reply to Re^3: On win32 a scheduling task program doesn't work by furry_marmot
in thread On win32 a scheduling task program doesn't work by saintex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.