Thank you all for your help.  I have found the problem but it wasn't a code
problem but a path issue.

My script uses and "ini" or options file because we will be rolling the
script into an .exe.   My problem again was that the script wasn't creating
the directory path when running from the AT command but it was working
correctly when run manally.

When run manually, I was already in the working directory when I ran the
script.  However, when AT kicks off, the working directory is
C:\winnt\system32.  The problem was that AT would kick off the script in
another directory, while retaining the c:\winnt\system32 working directory
- so when it tried to read the options file, it was in the wrong directory.
When I moved the options file to C:\winnt\system32, it works great!

I can also use an AT command like
c:\>at 01:00 cmd /c "cd c:\test && c:\test\script.pl"
to "cd" to the correct dir before running the script - then it finds the
options file.

Question - Is there a way to have the script figure out where it is and
then chdir to that directory?

Thank you for helping make this a success!!

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to