Ouch,

That sounds complicated although getting that to work could help me out
in other ways (like getting an application to protect data files from
users)

I'll have a look into the permissions and try to see what exactly is
getting denied. 

Thanks


Regards
Robert Jennings

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Sietse Wijnker
Posted At: 14 August 2007 15:02
Posted To: Profox Archive
Conversation: Running a batch file from VFP MTDLL
Subject: RE: Running a batch file from VFP MTDLL


The MTDll in ISS is instanciated uner the credentials of the IWAM_...
user.
This user has no rights outside the inetpub folder.
Try putting the MTDLL inside a COM+ application, setting it up to
impersonate. That way the MTDLL gets called from within IIS but runs
under credentials you can specify (and during debugging it's not needed
to reset IIS when updating the dll file)

Regards,
Sietse Wijnker

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Robert Jennings
Verzonden: dinsdag 14 augustus 2007 10:58
Aan: [EMAIL PROTECTED]
Onderwerp: Running a batch file from VFP MTDLL

Hi all,
 
I've been banging my head against the screen for 2 days trying to solve
this one:-
 
I'm creating a batch file to create self extracting zip files which is
working fine. This will package up Workstation, Application and Data
files into a self extracting zip for application installation.
 
I can run the following command from the command window
 
! c:\test\setup.bat 110
 
I can also run this
 
! &lccommand
(Where lccommand="c:\test\setup.bat 110"  110 is a parameter for the
batch file.)
 
Both work fine.
 
However, when I compile the code up as a MTDLL and create an object of
the DLL and get IIS to run it the ! command doesn't seem to work. It
causes a HTTP500 error.
 
I've tried Shellexe to no avail. That returns error code 5 which is
Access Denied, but everyone has full control in C:\test\ (for testing
purposes) and the DLL can create a text file in that folder.
 
Any idea's?
TIA
Robert
 

------------------------------------------------------------------------
----
----------------------------------
This email was sent to [email protected]

Unless otherwise agreed expressly in writing by Marine Software Limited,
this communication and attachments are to be treated as confidential and
the information in it may not be used or disclosed except for the
purpose for which it was sent.

If you are not the intended recipient of this  communication  you should
notify the sender immediately  [EMAIL PROTECTED] , then destroy
it without copying, disclosing or otherwise using its contents.

Marine Software Limited. Registered in England & Wales. No 2576494
Regsitered Office. Unit3, Aylesham Business Pk, Aylesham. Kent. UK
------------------------------------------------------------------------
----
--------------------------------------



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to