> From: ge...@telus.net
> Subject: Re: Running a Batch File from VFP
>
> I have walked through it. The batch file terminates in the
> middle with no error message. I would like to know why. I suspect
> that I need to set something, but I have no idea what.
Maybe I
You can use CreateProcess to execute the batch file. One of the parameters
in the structure passed to CreateProcess is a pointer to a new environment
block.
Or you can use the SetEnvironmentVariable API function to set the variables
for the current VFP application which then would be inherited by
If you really thought it's the batch file...
Why don't you just create a new batch file complete with all the
parameters in it,
then execute it from your Foxpro program as usual!
If that failed, that meant the batch file, even with needed parameters, just
wouldn't work, regardless of how paramete
At 14:40 2014-04-29, "kamcgin...@gmail.com" wrote:
I didn't see this entire thread so excuse if this has been suggested:
Put 'Echo ON' at the top
Then put a PAUSE command after every statement in your batch file.
You should be able to 'walk' thru it.
I have walked through it. The batch
I didn't see this entire thread so excuse if this has been suggested:
Put 'Echo ON' at the top
Then put a PAUSE command after every statement in your batch file. You
should be able to 'walk' thru it.
On 4/29/2014 11:46 AM, Gene Wirchenko wrote:
At 07:36 2014-04-29, Man-wai Chang wrote:
Gen
At 07:36 2014-04-29, Man-wai Chang wrote:
Generating the whole batch file is the simplest solution, and possibly
the more secured one!
What if the batch file you wanna call was modified by someone, somewhere? :)
You mean the batch file in the same directory as the VFP system?
Injecting
At 05:45 2014-04-29, you wrote:
! set me=Andy && Command Prompt screen flashes
?GETENV("me") && ''
i.e the environment variable lasts only the duration of the command
window (shell) - the same is true if you run a Command Prompt.
True, but irrelevant.
The batch file was terminat
Is this another alternative?
http://stackoverflow.com/questions/3803581/setting-a-system-environment-variable-from-a-windows-batch-file
On Sat, Apr 26, 2014 at 2:32 AM, Gene Wirchenko wrote:
> Dear Vixens and Reynards:
> The batch file was for sending E-mails using a program used by a
> co-w
Generating the whole batch file is the simplest solution, and possibly
the more secured one!
What if the batch file you wanna call was modified by someone, somewhere? :)
Injecting environment variables into a command sub-shell is a
dangerous idea anyway
On Tue, Apr 29, 2014 at 9:11 PM, Alan
Are you getting into territory here where PowerShell would be a better
proposition?
___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman
! set me=Andy && Command Prompt screen flashes
?GETENV("me") && ''
i.e the environment variable lasts only the duration of the command
window (shell) - the same is true if you run a Command Prompt.
On 29/04/2014 01:30, Gene Wirchenko wrote:
At 05:47 2014-04-28, Man-wai Chang wrote:
You
On Tue, Apr 29, 2014 at 4:00 AM, Gene Wirchenko wrote:
>> Another trick is to programmatically generate the whole batch file
>> with parameters stored, then execute it.
> I suppose so, but I prefer not to do that. It would be a pain to debug.
No more complicated than programmatically generating
At 05:47 2014-04-28, Man-wai Chang wrote:
You can't add environment variables into a sub-shell, I believe.
Your belief is incorrect. My debugging code in the batch file
included echoing the environment variable value that I had set, and
up to the point of failure, they were set.
You can't add environment variables into a sub-shell, I believe.
What if you use a text file instead to store and pass parameters?
Another trick is to programmatically generate the whole batch file
with parameters stored, then execute it.
On Sat, Apr 26, 2014 at 2:32 AM, Gene Wirchenko wrote:
>
Dear Vixens and Reynards:
I am trying to run a batch file from VFP, and I ran into some
difficulty. I have since done it a different way, but I do not know
why the problem happened and would rather not have it bite me again
later. I am using Windows XP.
The batch file was for sen
ginal Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Sietse Wijnker
Posted At: 15 August 2007 11:25
Posted To: Profox Archive
Conversation: Running a batch file from VFP MTDLL
Subject: RE: Running a batch file from VFP MTDLL
What kind of OS is running your website?
Ca
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sietse Wijnker
Sent: Wednesday, August 15, 2007 6:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Running a batch file from VFP MTDLL
What kind of OS is running your website?
Can you instanciate the COM+ component using VFP?
My guess is that the COM+
n: [EMAIL PROTECTED]
Onderwerp: RE: Running a batch file from VFP MTDLL
Sietse,
I've carried out your instructions and the web page isn't working at
all.
I've given the component a admin account to run under.
If I unload it and go back to the original dll it works. Only when it
goes insi
e Wijnker
Posted At: 14 August 2007 16:43
Posted To: Profox Archive
Conversation: Running a batch file from VFP MTDLL
Subject: RE: Running a batch file from VFP MTDLL
Actually, it's suprisingly easy IMO.
1. Start Component Services (in administrative tools) 2. Drill down to
Console Root/Com
Tracy,
Thanks for the tip.
Regards
Robert
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Tracy Pearson
Posted At: 14 August 2007 12:59
Posted To: Profox Archive
Conversation: Running a batch file from VFP MTDLL
Subject: Re: Running a batch file
] [mailto:[EMAIL PROTECTED]
Namens Robert Jennings
Verzonden: dinsdag 14 augustus 2007 17:00
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Running a batch file from VFP MTDLL
Ouch,
That sounds complicated although getting that to work could help me out
in other ways (like getting an application to protect d
from VFP MTDLL
Subject: RE: Running a batch file from VFP MTDLL
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: profox@leafe.com
Subject: Running a batch
ginal 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 credentia
(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
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: profox@leafe.com
Subject: Running a batch file from VFP MTDLL
Hi all,
I've been banging my head ag
From vague recollection of conversations I've read in the past. Is it
this? The user that the IIS service is started by isn't part of Everyone
group.
HTH,
Tracy
Robert Jennings wrote:
> Hi all,
>
> I've been banging my head against the screen for 2 days trying to solve
> this one:-
>
> I'm
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.
27 matches
Mail list logo