access denied

P

perlperl

when i run the command
my $document = Win32::OLE->GetObject($wordfile) or die "Cannot create
object \n";

it works fine for 1 host

but on other host i get error:

Win32::OLE(0.1502) error 0x80070005: "Access is denied" at
 
M

Matt Garrish

perlperl said:
when i run the command
my $document = Win32::OLE->GetObject($wordfile) or die "Cannot create
object \n";

it works fine for 1 host

but on other host i get error:

Win32::OLE(0.1502) error 0x80070005: "Access is denied" at

I don't think anyone will be able to guess you to an answer with only that
to go on. How are the scripts run? By you? As a service? As a scheduled
task? Does the user they're running as have access to run Word? You're
getting an error from the OS, so you need to look outside your script and
figure out what the configuration problem is that's generating this error.

Matt
 
A

A. Sinan Unur

I don't think anyone will be able to guess you to an answer with only
that to go on. How are the scripts run? By you? As a service? As a
scheduled task? Does the user they're running as have access to run
Word? You're getting an error from the OS, so you need to look outside
your script and figure out what the configuration problem is that's
generating this error.

A simple Google search on the error code would have helped too:

http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-admin/213804

Sinan

--
A. Sinan Unur <[email protected]>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
 
P

perlperl

ow do i make sure if my script is running as administrator or some
other username... (IUSR_machineName etc)
i logged in to my host as Administrator
 
P

perlperl

i tried set command and it says
USERNAME=Administrator

which I am runnning my script as administrator then why do I have the
acceess denied issue
 
M

Matt Garrish

Please quote context. Using google groups is not an excuse. How do you
expect anyone to follow your problem based solely on what you reproduce
below?
i tried set command and it says
USERNAME=Administrator

which I am runnning my script as administrator then why do I have the
acceess denied issue

If you're logging on remotely, you may not have full access to the
filesystem even as an admin (to keep hackers from exploiting that hole), and
hence not be able to run Word. The Event log might give you more
information, if you can access it. You really need to try a group that deals
with Windows servers, though. The issue affects your ability to run a Perl
script, but has nothing to do with perl.

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,537
Latest member
BellCorone

Latest Threads

Top