in reply to packages and Windows 7 Task Scehduler

use lib "C:\path\to\my\script";

likely won't do what you think it does. \t expands to a tab in double quotes.

I prefer to use forward slashes in path specifications:

use lib "C:/path/to/my/script";

Also, I like to launch my Perl programs through a .cmd script on Windows:

@rem Change the directory to where this .cmd lives: cd /d %~dp0 @rem Launch the script perl -w myscript.pl %*

That way, I have a defined working directory, which also makes relative paths work again.

Replies are listed 'Best First'.
Re^2: packages and Windows 7 Task Scehduler
by Washizu (Scribe) on Jan 29, 2010 at 18:32 UTC

    Thanks! This helped me debug the problem. It looks like Windows 7's Task Scheduler runs everything by default from C:\Windows\System

    There's an entry when creating a task for where you want to script to run from. Once I set that to the proper place, it worked fine.

    For tasks you already created, open the script properties and go to Actions, Edit, and change the value of Start In (optional).

    -----------------------------------
    Washizu