It probably has to do with pathing. 

JH

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Robert Jennings
Sent: Tuesday, August 14, 2007 3:58 AM
To: [email protected]
Subject: 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]@shelbynet.com
** 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