Thank you all for your replies....

A little clarification...
This is for creating the directories on the local machine, not remote.
Scheduler is running with the System account.
The drive is C:\ and I have opened it up to Everyone Full COntrol and it
still doesn't work.
Yes, I have tried specifying the path many different ways with no luck
except when run manually.

Any other thoughts?  I am open to trying most anything.  Thank you!!!

Glenn Meyer  t/l 631-9100  -  [EMAIL PROTECTED]
Content Hosting Systems Administrator    Service Delivery Center - South



                                                                                       
                              
                      "Philip Morley"                                                  
                              
                      <[EMAIL PROTECTED]>                 To:                  
                              
                      Sent by:                                     
[EMAIL PROTECTED]         
                      [EMAIL PROTECTED]        cc:                  
                              
                      veState.com                                 Subject:  Re: 
Problem creating directories         
                                                                                       
                              
                                                                                       
                              
                      02/27/2003 11:17                                                 
                              
                                                                                       
                              
                                                                                       
                              





Is $lspath an absolute path, or relative path?  If it is a relative path,
then you will probably need to fully qualify it with drive letter and
parent directories, i.e. D\\somedir\\somesubdir\\...

Other than that, are you certain the user the AT command is running has the
appropriate permission?

HTH, Phil.


|---------+----------------------------------------------->
|         |           Glenn Meyer <[EMAIL PROTECTED]>    |
|         |           Sent by:                            |
|         |           [EMAIL PROTECTED]|
|         |           veState.com                         |
|         |                                               |
|         |                                               |
|         |           27/01/03 17:01                      |
|         |                                               |
|---------+----------------------------------------------->

>------------------------------------------------------------------------------------------------|

  |
|
  |        To:      <[EMAIL PROTECTED]>
|
  |        cc:
|
  |        Subject: Problem creating directories
|

>------------------------------------------------------------------------------------------------|








I am trying to build a script that helps archive data.  One of the tasks I
want it to do is to check to see if the directory path exists and if not,
to then create it.  The following code works fine everytime when running
the script manually.  However, I need to run it from an AT command.  The
script appears to work well everytime IF the directory path already exists,
but it will not create the directories on it's own - again, this is only
when run automatically from an AT command - running it manually it does
fine.  The Scheduler/Task Scheduler Service is running with the System
account and the System account does have full permissions to create the
directories.

Here is the snip from the code......
# If local_retention=yes then copies logs to local_store_path=
if($options{local_retention} =~ m/yes/) {
      my $lspath = $options{local_store_path};
      if(!(-e $lspath)) {
            &File::Path::mkpath($lspath);
      }
}


Any thoughts?  Thank you!!!


Glenn Meyer

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






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



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

Reply via email to