Re: ShellExecute

2021-06-10 Thread MB Software Solutions, LLC
Sounds like the Task Scheduler would suit you.  It has an option to not 
run if there's an existing run in progress.


On 6/9/2021 5:33 AM, Chris Davis wrote:

Hi All

I want to ShellExecute a program repeatedly but not until the previous instance 
has finished, what's the best approach?  So I effectively want to wait in a 
loop until the previous instance exits and then run it again.

Ideas?

TIA

Chris.


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


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/67ce1cfb-3fcd-e007-557a-9c98bfe90...@mbsoftwaresolutions.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.

RE: ShellExecute

2021-06-09 Thread Chris Davis
Thanks Alan also found this which seems to work very well ...

https://www.berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it


-Original Message-
From: ProfoxTech  On Behalf Of Alan Bourke
Sent: 09 June 2021 11:40
To: profoxt...@leafe.com
Subject: Re: ShellExecute

* -- 
https://docs.microsoft.com/en-us/previous-versions//d5fk67ky(v=vs.85)
Function RunUsingWSH(lcExe, lcCommandLine) as Integer
Local loWshShell

loWshShell = CreateObject("WScript.Shell")
this.nProcessReturnCode = loWshShell.Run(lcExe + " " + 
lcCommandLine, 1, .t.)   && Wait for result.

Endfunc



--
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

On Wed, 9 Jun 2021, at 10:33 AM, Chris Davis wrote:
> Hi All
> 
> I want to ShellExecute a program repeatedly but not until the previous 
> instance has finished, what's the best approach?  So I effectively 
> want to wait in a loop until the previous instance exits and then run 
> it again.
> 
> Ideas?
> 
> TIA
> 
> Chris.
> 
> 
> --- StripMime Report -- processed MIME parts --- multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
> 
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/cwlp123mb33162651fe5f6b41decbc3fe8f...@cwlp123mb3316.gbrp123.prod.outlook.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.


Re: ShellExecute

2021-06-09 Thread Alan Bourke
* -- 
https://docs.microsoft.com/en-us/previous-versions//d5fk67ky(v=vs.85)
Function RunUsingWSH(lcExe, lcCommandLine) as Integer
Local loWshShell

loWshShell = CreateObject("WScript.Shell")
this.nProcessReturnCode = loWshShell.Run(lcExe + " " + 
lcCommandLine, 1, .t.)   && Wait for result.

Endfunc



-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

On Wed, 9 Jun 2021, at 10:33 AM, Chris Davis wrote:
> Hi All
> 
> I want to ShellExecute a program repeatedly but not until the previous 
> instance has finished, what's the best approach?  So I effectively want 
> to wait in a loop until the previous instance exits and then run it 
> again.
> 
> Ideas?
> 
> TIA
> 
> Chris.
> 
> 
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
> 
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/06f15e58-d134-435f-b81f-283ca9ab2...@www.fastmail.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.


Re: ShellExecute

2021-06-09 Thread Jan Bucek

Dne 9.6.2021 v 11:33 Chris Davis napsal(a):

Hi All

I want to ShellExecute a program repeatedly but not until the previous instance 
has finished, what's the best approach?  So I effectively want to wait in a 
loop until the previous instance exits and then run it again.

Ideas?


Look at command START /wait:

c:> start /?




TIA

Chris.


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


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/67c8f730-c0bb-7c68-475a-ab9f5a022...@post.cz
** 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.


Re: ShellExecute window size ignored

2016-04-11 Thread Ted Roche
Another point of view to consider here is that, in using ShellExecute,
you're yielding to Windows to open the PDF in the registered
application. It may be the default Reader in some OS. It may be FoxIt,
as someone's already mentioned. It may be the full Adobe Suite, if
someone has that installed. Or it may be CutePDF reader or PDFCreator.
Or the VIP reader for the blind.

If you're dealing with an in-house app where you control the desktop,
or if you ship a reader with your app, you may have more control to
get the effect you want. But if you just want to launch "the reader"
you might have to depend on the user to set things the way they would
prefer.


On Mon, Apr 11, 2016 at 8:38 AM, Paul Newton  wrote:
> Thank you Fernando
>
> -Original Message-
> From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Fernando 
> D. Bozzo
> Sent: 11 April 2016 13:35
> To: profoxt...@leafe.com
> Subject: Re: ShellExecute window size ignored
>
> Hi Paul:
>
> The problem is that Adobe Reader is not a normal application, and do not 
> respect normal messages.
>
> I've found an awful hack, but seem to work:
>
> http://superuser.com/questions/640174/how-to-start-adobe-reader-with-window-maximized?newreg=e8665170ca67456285b056122e43653d
>
>
>
>
> 2016-04-11 13:27 GMT+02:00 Paul Newton :
>
>> Thanks but I tried that and it still didn't work - it was another
>> developer who wrote the code and assigned a numeric value to
>> lcCallingWindow instead of lnCallingWindow
>>
>>
>
>
> --- StripMime Report -- processed MIME parts --- multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CACW6n4uq=ishmkjhahfzlwdwuvw-hahbq47xqn5w1oz67xm...@mail.gmail.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.


RE: ShellExecute window size ignored

2016-04-11 Thread Paul Newton
Thank you Fernando

-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Fernando D. 
Bozzo
Sent: 11 April 2016 13:35
To: profoxt...@leafe.com
Subject: Re: ShellExecute window size ignored

Hi Paul:

The problem is that Adobe Reader is not a normal application, and do not 
respect normal messages.

I've found an awful hack, but seem to work:

http://superuser.com/questions/640174/how-to-start-adobe-reader-with-window-maximized?newreg=e8665170ca67456285b056122e43653d




2016-04-11 13:27 GMT+02:00 Paul Newton :

> Thanks but I tried that and it still didn't work - it was another 
> developer who wrote the code and assigned a numeric value to 
> lcCallingWindow instead of lnCallingWindow
>
>


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

[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/9a8106afb0ef9b44b69045c4448935a20141082...@nlbawexmbx1.infor.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.


Re: ShellExecute window size ignored

2016-04-11 Thread Fernando D. Bozzo
Hi Paul:

The problem is that Adobe Reader is not a normal application, and do not
respect normal messages.

I've found an awful hack, but seem to work:

http://superuser.com/questions/640174/how-to-start-adobe-reader-with-window-maximized?newreg=e8665170ca67456285b056122e43653d




2016-04-11 13:27 GMT+02:00 Paul Newton :

> Thanks but I tried that and it still didn't work - it was another
> developer who wrote the code and assigned a numeric value to
> lcCallingWindow instead of lnCallingWindow
>
>


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

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAGQ_JumA=sezxvtkgqps1bcjosm-vtw3nio9uuj_nprmpn1...@mail.gmail.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.


RE: ShellExecute window size ignored

2016-04-11 Thread Dave Crozier
Oh, and the hndWin parameter is numeric

Dave

-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Dave Crozier
Sent: 11 April 2016 13:27
To: ProFox Email List 
Subject: RE: ShellExecute window size ignored

Paul,
I don't use Adobe it is a pain but the equivalent runs with FoxitReader PDF 
reader. Set up cParams to be path to the PDF to open.

DECLARE INTEGER ShellExecute IN shell32.dll ;
  INTEGER hndWin, ;
  STRING cAction, ;
  STRING cFileName, ;
  STRING cParams, ;
  STRING cDir, ;
  INTEGER nShowWin

cParams=""
cFileName = "C:\Program Files (x86)\Foxit Software\Foxit Reader\foxitreader.exe"
cAction = "open" 

*nMode = 1 && Standard Window
nMode = 3 && Full screen
ShellExecute(0,cAction,cFileName,cParams,"",nMode)


-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Paul Newton
Sent: 11 April 2016 12:27
To: profox@leafe.com
Subject: RE: ShellExecute window size ignored

Thanks but I tried that and it still didn't work - it was another developer who 
wrote the code and assigned a numeric value to lcCallingWindow instead of 
lnCallingWindow

-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Fernando D. 
Bozzo
Sent: 11 April 2016 12:04
To: profoxt...@leafe.com
Subject: Re: ShellExecute window size ignored

Hi Paul:

lcCallingWindow should be numeric,  and normally is 0.

Try if this makes any difference
El 11/4/2016 11:49 a. m., "Paul Newton" 
escribió:

> Hi all
>
> I am trying to view a PDF in a maximized window
>
> ShellExecute(lcCallingWindow, "Open", lcFileName, "", "", 3)
>
> The last parameter _should_ force the application window to be 
> maximized but it doesn't :(
>
> The default application for PDFs on my system is Adobe Reader XI
> V11.0.09 and I am running Windows 7.  Has anybody else had a similar issue?
>
> Thanks
>
> Paul Newton
>
>
[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.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.
Report [OT] Abuse: 
http://leafe.com/reportAbuse/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.com
___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/9a8106afb0ef9b44b69045c4448935a20141082...@nlbawexmbx1.infor.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.
___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/18725b8cd2d5d247873a2baf401d4ab2852cf...@ex2010-a-fpl.fpl.LOCAL
** 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.
___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/18725b8cd2d5d247873a2baf401d4ab2852cf...@ex2010-a-fpl.fpl.LOCAL
** 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.

RE: ShellExecute window size ignored

2016-04-11 Thread Dave Crozier
Paul,
I don't use Adobe it is a pain but the equivalent runs with FoxitReader PDF 
reader. Set up cParams to be path to the PDF to open.

DECLARE INTEGER ShellExecute IN shell32.dll ; 
  INTEGER hndWin, ; 
  STRING cAction, ; 
  STRING cFileName, ; 
  STRING cParams, ;  
  STRING cDir, ; 
  INTEGER nShowWin

cParams=""
cFileName = "C:\Program Files (x86)\Foxit Software\Foxit Reader\foxitreader.exe"
cAction = "open" 

*nMode = 1 && Standard Window
nMode = 3 && Full screen
ShellExecute(0,cAction,cFileName,cParams,"",nMode)


-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Paul Newton
Sent: 11 April 2016 12:27
To: profox@leafe.com
Subject: RE: ShellExecute window size ignored

Thanks but I tried that and it still didn't work - it was another developer who 
wrote the code and assigned a numeric value to lcCallingWindow instead of 
lnCallingWindow

-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Fernando D. 
Bozzo
Sent: 11 April 2016 12:04
To: profoxt...@leafe.com
Subject: Re: ShellExecute window size ignored

Hi Paul:

lcCallingWindow should be numeric,  and normally is 0.

Try if this makes any difference
El 11/4/2016 11:49 a. m., "Paul Newton" 
escribió:

> Hi all
>
> I am trying to view a PDF in a maximized window
>
> ShellExecute(lcCallingWindow, "Open", lcFileName, "", "", 3)
>
> The last parameter _should_ force the application window to be 
> maximized but it doesn't :(
>
> The default application for PDFs on my system is Adobe Reader XI
> V11.0.09 and I am running Windows 7.  Has anybody else had a similar issue?
>
> Thanks
>
> Paul Newton
>
>
[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.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.
Report [OT] Abuse: 
http://leafe.com/reportAbuse/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.com
___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/9a8106afb0ef9b44b69045c4448935a20141082...@nlbawexmbx1.infor.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.
___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/18725b8cd2d5d247873a2baf401d4ab2852cf...@ex2010-a-fpl.fpl.LOCAL
** 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.

RE: ShellExecute window size ignored

2016-04-11 Thread Paul Newton
Thanks but I tried that and it still didn't work - it was another developer who 
wrote the code and assigned a numeric value to lcCallingWindow instead of 
lnCallingWindow

-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Fernando D. 
Bozzo
Sent: 11 April 2016 12:04
To: profoxt...@leafe.com
Subject: Re: ShellExecute window size ignored

Hi Paul:

lcCallingWindow should be numeric,  and normally is 0.

Try if this makes any difference
El 11/4/2016 11:49 a. m., "Paul Newton" 
escribió:

> Hi all
>
> I am trying to view a PDF in a maximized window
>
> ShellExecute(lcCallingWindow, "Open", lcFileName, "", "", 3)
>
> The last parameter _should_ force the application window to be 
> maximized but it doesn't :(
>
> The default application for PDFs on my system is Adobe Reader XI 
> V11.0.09 and I am running Windows 7.  Has anybody else had a similar issue?
>
> Thanks
>
> Paul Newton
>
>
[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.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.
Report [OT] Abuse: 
http://leafe.com/reportAbuse/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.com
___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/9a8106afb0ef9b44b69045c4448935a20141082...@nlbawexmbx1.infor.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.

Re: ShellExecute window size ignored

2016-04-11 Thread Fernando D. Bozzo
Hi Paul:

lcCallingWindow should be numeric,  and normally is 0.

Try if this makes any difference
El 11/4/2016 11:49 a. m., "Paul Newton" 
escribió:

> Hi all
>
> I am trying to view a PDF in a maximized window
>
> ShellExecute(lcCallingWindow, "Open", lcFileName, "", "", 3)
>
> The last parameter _should_ force the application window to be maximized
> but it doesn't :(
>
> The default application for PDFs on my system is Adobe Reader XI V11.0.09
> and I am running Windows 7.  Has anybody else had a similar issue?
>
> Thanks
>
> Paul Newton
>
>
[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.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.

Re: SHELLEXECUTE() - Solution

2013-09-04 Thread Ted Roche
On Wed, Sep 4, 2013 at 5:02 PM, Jeff Johnson  wrote:

> I had two problems, shellexecute for emails and urls.  In Windows 7 you go
> into Control Panel / Programs and Set Default Programs.  This worked for
> the browser. I wanted to use GMail and couldn't get rid of Outlook in the
> above place.  I downloaded gmaildefaultmaker at
> http://gmaildefault.codeplex.**com/ 
> and buzzinga!  It all works.
>

That's a pretty cool project, Jeff! Thanks for passing on the resolution!


-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


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

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CACW6n4v_zjgXMLTEno=r2ez7kvku0gav1ab+g_wcjbrqlcx...@mail.gmail.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.


Re: SHELLEXECUTE()

2013-09-04 Thread Mike Copeland

Is it by chance a Win7 or 8 or Fista system?

If yes, then try setting the default in the Windows setup app to 
whatever application you're trying to run. Windows will typically be set 
to "use default" but by setting the app explicitly the links begin 
working again.


I think it's a bug, but...

Mike Copeland

 Original Message 
Subject: SHELLEXECUTE()
From: Jeff Johnson 
To: profoxt...@leafe.com
Date: 9/4/2013 3:01 PM
I have an application that uses shellexecute() to access web pages. It 
works everywhere it is installed except for one computer.  I get an 
error 31 no application associated with this request.  IE is what I 
want to call and it is set as the default browser. Wassup?


TIA




___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/52279caf.8010...@ggisoft.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.


Re: SHELLEXECUTE()

2013-09-04 Thread MB Software Solutions, LLC

On 9/4/2013 4:48 PM, Mike Copeland wrote:

Is it by chance a Win7 or 8 or Fista system?



"Fista".ROFLMAO


--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/5227a0f7.4050...@mbsoftwaresolutions.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.


Re: SHELLEXECUTE()

2013-09-04 Thread Mike Copeland

Oops. A non-Freudian slip.


 Original Message 
Subject: Re: SHELLEXECUTE()
From: MB Software Solutions, LLC 


To: profoxt...@leafe.com
Date: 9/4/2013 4:07 PM

On 9/4/2013 4:48 PM, Mike Copeland wrote:

Is it by chance a Win7 or 8 or Fista system?



"Fista".ROFLMAO





___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/5227a2eb.6070...@ggisoft.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.


Re: SHELLEXECUTE() - Solution

2013-09-04 Thread Jeff Johnson
I had two problems, shellexecute for emails and urls.  In Windows 7 you 
go into Control Panel / Programs and Set Default Programs.  This worked 
for the browser. I wanted to use GMail and couldn't get rid of Outlook 
in the above place.  I downloaded gmaildefaultmaker at 
http://gmaildefault.codeplex.com/

and buzzinga!  It all works.




Jeff

---

Jeff Johnson
j...@san-dc.com
(623) 582-0323

www.san-dc.com
www.arelationshipmanager.com

On 09/04/2013 01:48 PM, Mike Copeland wrote:

Is it by chance a Win7 or 8 or Fista system?

If yes, then try setting the default in the Windows setup app to 
whatever application you're trying to run. Windows will typically be 
set to "use default" but by setting the app explicitly the links begin 
working again.


I think it's a bug, but...

Mike Copeland

 Original Message 
Subject: SHELLEXECUTE()
From: Jeff Johnson 
To: profoxt...@leafe.com
Date: 9/4/2013 3:01 PM
I have an application that uses shellexecute() to access web pages. 
It works everywhere it is installed except for one computer.  I get 
an error 31 no application associated with this request.  IE is what 
I want to call and it is set as the default browser. Wassup?


TIA





[excessive quoting removed by server]

___
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/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/52279fe6.5030...@san-dc.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.


Re: Shellexecute problem

2008-01-14 Thread Paul Newton
Dave

What can I say ... ?  Many thanks

Or as (Somebody)  would write ... maNy thAnKs

Reading his code is *painful* ...

Paul

Dave Crozier wrote:
> Paul,
> Also here is a program to take an open window opened with notepad and send
> keystrokes to it.
>
> 1. Open a new Notepad File (right click in folder - new text document
>
> 2. Run the program below
>
> Notice it sends keystrokes to the Notepad document and as an aside opens up
> the Font menu.
>
> Hope it helps
> Dave
>
> ***
> * Start of Code
> *
> cWindow_Name="New Plain Text File.txt - Notepad"
>   
> lnMainWind = GetActiveWind()
> lnHandle = FindWind(cWindow_Name)
> SetForeWind(lnHandle)
> If lnHandle # 0
>   * Start scanning and wait 2 seconds
>   cMessage="Hello There This has been created by VFP"
>   For I=1 to Len(cMessage)
>   ? SendKey(Substr(cMessage,I,1))
>   Endfor
>   
>   Do While FindWind(cWindow_Name) # 0
>   * Attempt to close the MODI Application
>   SendKey('ALT O')
>   SendKey('F')
>   SendKey('T')
>   Exit
>   *
>   Enddo
> Endif
>
> * Reactivate the calling window
> SetForeWind(lnMainWind)
> Return
>
>
> ***
> * Function to send keystrokes
> * Eg Sendkey("ALT T") - send Alt/T
> *
> Function SendKey (tcChar)
>   Declare keybd_event In user32 ;
>   SHORT bVk, SHORT bScan, ;
>   INTEGER dwFlags, Integer dwExtraInfo
>   Declare SHORT VkKeyScan In user32 Integer ch
>   Local lcChar
>   lcChar = Right(tcChar, 1)
>   Do Case
>   Case 'SHIFT' $ Upper(tcChar)
>   * Shift key
>   keybd_event(0x10, 0, 0, 0)
>   Case 'CTRL' $ Upper(tcChar)
>   * Ctrl key
>   keybd_event(0x11, 0, 0, 0)
>   Case 'ALT' $ Upper(tcChar)
>   * Alt key
>   keybd_event(0x12, 0, 0, 0)
>   Endcase
>
>   keybd_event(VkKeyScan(Asc(lcChar)), 0, 0, 0)
>
>   Do Case
>   Case 'SHIFT' $ Upper(tcChar)
>   * Shift key
>   keybd_event(0x10, 0, 2, 0)
>   Case 'CTRL' $ Upper(tcChar)
>   * Ctrl key
>   keybd_event(0x11, 0, 2, 0)
>   Case 'ALT' $ Upper(tcChar)
>   * Alt key
>   keybd_event(0x12, 0, 2, 0)
>   *
>   EndCase
>   
>   * Wait for response
>   Inkey(.01)
>   Return
> * 
> EndFunc
>
> * Establish the foreground window
> Function SetForeWind(tnHandle)
>   Declare Integer SetForegroundWindow ;
>   IN user32 Integer hWindow
>   Declare Integer FindWindow In user32 ;
>   STRING lpClassName, String lpWindowName
>   SetForegroundWindow(tnHandle)
>   Return
> EndFunc
>
> * Get a specific window reference
> Function FindWind(tcWindow)
>   Declare Integer FindWindow In user32 ;
>   STRING lpClassName, String lpWindowName
>   Local lnHandle
>   lnHandle = FindWindow(Null, tcWindow)
>   Return (lnHandle)
> EndFunc
>
> * Get reference to the active window
> Function GetActiveWind
>   Declare Integer GetActiveWindow In user32
>   Return (GetActiveWindow())
>   *
> EndFunc
>   



___
Post Messages to: ProFox@leafe.com
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.


RE: Shellexecute problem

2008-01-14 Thread Dave Crozier
Paul,
Also here is a program to take an open window opened with notepad and send
keystrokes to it.

1. Open a new Notepad File (right click in folder - new text document

2. Run the program below

Notice it sends keystrokes to the Notepad document and as an aside opens up
the Font menu.

Hope it helps
Dave

***
* Start of Code
*
cWindow_Name="New Plain Text File.txt - Notepad"

lnMainWind = GetActiveWind()
lnHandle = FindWind(cWindow_Name)
SetForeWind(lnHandle)
If lnHandle # 0
* Start scanning and wait 2 seconds
cMessage="Hello There This has been created by VFP"
For I=1 to Len(cMessage)
? SendKey(Substr(cMessage,I,1))
Endfor

Do While FindWind(cWindow_Name) # 0
* Attempt to close the MODI Application
SendKey('ALT O')
SendKey('F')
SendKey('T')
Exit
*
Enddo
Endif

* Reactivate the calling window
SetForeWind(lnMainWind)
Return


***
* Function to send keystrokes
* Eg Sendkey("ALT T") - send Alt/T
*
Function SendKey (tcChar)
Declare keybd_event In user32 ;
SHORT bVk, SHORT bScan, ;
INTEGER dwFlags, Integer dwExtraInfo
Declare SHORT VkKeyScan In user32 Integer ch
Local lcChar
lcChar = Right(tcChar, 1)
Do Case
Case 'SHIFT' $ Upper(tcChar)
* Shift key
keybd_event(0x10, 0, 0, 0)
Case 'CTRL' $ Upper(tcChar)
* Ctrl key
keybd_event(0x11, 0, 0, 0)
Case 'ALT' $ Upper(tcChar)
* Alt key
keybd_event(0x12, 0, 0, 0)
Endcase

keybd_event(VkKeyScan(Asc(lcChar)), 0, 0, 0)

Do Case
Case 'SHIFT' $ Upper(tcChar)
* Shift key
keybd_event(0x10, 0, 2, 0)
Case 'CTRL' $ Upper(tcChar)
* Ctrl key
keybd_event(0x11, 0, 2, 0)
Case 'ALT' $ Upper(tcChar)
* Alt key
keybd_event(0x12, 0, 2, 0)
*
EndCase

* Wait for response
Inkey(.01)
Return
*   
EndFunc

* Establish the foreground window
Function SetForeWind(tnHandle)
Declare Integer SetForegroundWindow ;
IN user32 Integer hWindow
Declare Integer FindWindow In user32 ;
STRING lpClassName, String lpWindowName
SetForegroundWindow(tnHandle)
Return
EndFunc

* Get a specific window reference
Function FindWind(tcWindow)
Declare Integer FindWindow In user32 ;
STRING lpClassName, String lpWindowName
Local lnHandle
lnHandle = FindWindow(Null, tcWindow)
Return (lnHandle)
EndFunc

* Get reference to the active window
Function GetActiveWind
Declare Integer GetActiveWindow In user32
Return (GetActiveWindow())
*
EndFunc

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Newton
Sent: 14 January 2008 17:12
To: profox@leafe.com
Subject: Re: Shellexecute problem

Many thanks Dave

Paul

Dave Crozier wrote:
> Paul,
> Use this to see if Notepad is running
>
> Dave Crozier
>
> ***
> * Start of Code
> *
> ? IsRunning("Notepad")
>
> Function IsRunning
> Lparameter pctitle
>
> Declare INTEGER GetActiveWindow IN Win32API
> Declare INTEGER GetWindow IN Win32API;
>   INTEGER hwnd, INTEGER dflag
> Declare INTEGER GetWindowText IN Win32API ;
>   INTEGER hwnd, STRING @lptstr, INTEGER cbmax
> Declare INTEGER CloseWindow IN Win32API;
>   INTEGER hwnd
> Declare INTEGER DestroyWindow IN Win32API;
>   INTEGER hwnd
> Local lnhwnd, lnnext, lldone, lctitle_bar, lcsearchfor,;
>   lntext_len
> lcsearchfor = UPPER(ALLTRIM(pctitle))
> lnhwnd = GetActiveWindow()
> lnnext = 2
> lctitle_bar = ""
> Do WHILE lnhwnd # 0
>   If type('lnhwnd') # 'N'
>   Loop
>   Endif
>
>   lctitle_bar = SPACE(200) + CHR(0)
>   lntext_len = GetWindowText(lnhwnd, @lctitle_bar, 200)
>   lctitle_bar = UPPER(LEFT(lctitle_bar, lntext_len))
>   lldone = (lcsearchfor $ lctitle_bar)
>   lp=lnhwnd
>   lnhwnd = iif(lldone, 0, GetWindow(lnhwnd, lnnext))
> Enddo
> Return lldone
> *
> * End of Code
> 
>   



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
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/sea

Re: Shellexecute problem

2008-01-14 Thread Paul Newton
Allen wrote:
> They seem to be in the regitry
> HKEY_CURRENT_USER\Software\Microsoft\Notepad\
> Allen 
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Vince Teachout
> Sent: 14 January 2008 17:16
> To: [EMAIL PROTECTED]
> Subject: Re: Shellexecute problem
>
> Paul Newton wrote:
>   
>> Also is there a way to prevent Notepad printing the file with a
>> (filename) header and (page number) footer ?
Many thanks Allen

Paul Newton


___
Post Messages to: ProFox@leafe.com
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.


Re: Shellexecute problem

2008-01-14 Thread Paul Newton
Many thanks Dave

Paul

Dave Crozier wrote:
> Paul,
> Use this to see if Notepad is running
>
> Dave Crozier
>
> ***
> * Start of Code
> *
> ? IsRunning("Notepad")
>
> Function IsRunning
> Lparameter pctitle
>
> Declare INTEGER GetActiveWindow IN Win32API
> Declare INTEGER GetWindow IN Win32API;
>   INTEGER hwnd, INTEGER dflag
> Declare INTEGER GetWindowText IN Win32API ;
>   INTEGER hwnd, STRING @lptstr, INTEGER cbmax
> Declare INTEGER CloseWindow IN Win32API;
>   INTEGER hwnd
> Declare INTEGER DestroyWindow IN Win32API;
>   INTEGER hwnd
> Local lnhwnd, lnnext, lldone, lctitle_bar, lcsearchfor,;
>   lntext_len
> lcsearchfor = UPPER(ALLTRIM(pctitle))
> lnhwnd = GetActiveWindow()
> lnnext = 2
> lctitle_bar = ""
> Do WHILE lnhwnd # 0
>   If type('lnhwnd') # 'N'
>   Loop
>   Endif
>
>   lctitle_bar = SPACE(200) + CHR(0)
>   lntext_len = GetWindowText(lnhwnd, @lctitle_bar, 200)
>   lctitle_bar = UPPER(LEFT(lctitle_bar, lntext_len))
>   lldone = (lcsearchfor $ lctitle_bar)
>   lp=lnhwnd
>   lnhwnd = iif(lldone, 0, GetWindow(lnhwnd, lnnext))
> Enddo
> Return lldone
> *
> * End of Code
> 
>   



___
Post Messages to: ProFox@leafe.com
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.


RE: Shellexecute problem

2008-01-14 Thread Allen
They seem to be in the regitry
HKEY_CURRENT_USER\Software\Microsoft\Notepad\
Allen 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Vince Teachout
Sent: 14 January 2008 17:16
To: [EMAIL PROTECTED]
Subject: Re: Shellexecute problem

Paul Newton wrote:
> Also is there a way to prevent Notepad printing the file with a
> (filename) header and (page number) footer ?

I can help with the easy part.  In Notepad, open File, page setup, and
delete the header and footer stuff.
I don't think that can be done programatically, though.


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date: 13/01/2008
20:23
 



___
Post Messages to: ProFox@leafe.com
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.


Re: Shellexecute problem

2008-01-14 Thread Vince Teachout
Paul Newton wrote:
> Vince
>
> That reminds me of the one about "miracles and impossibilities" :-)
>   
Don't know that one.  Share, please.  :)


___
Post Messages to: ProFox@leafe.com
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.


RE: Shellexecute problem

2008-01-14 Thread Dave Crozier
Paul,
Use this to see if Notepad is running

Dave Crozier

***
* Start of Code
*
? IsRunning("Notepad")

Function IsRunning
Lparameter pctitle

Declare INTEGER GetActiveWindow IN Win32API
Declare INTEGER GetWindow IN Win32API;
INTEGER hwnd, INTEGER dflag
Declare INTEGER GetWindowText IN Win32API ;
INTEGER hwnd, STRING @lptstr, INTEGER cbmax
Declare INTEGER CloseWindow IN Win32API;
INTEGER hwnd
Declare INTEGER DestroyWindow IN Win32API;
INTEGER hwnd
Local lnhwnd, lnnext, lldone, lctitle_bar, lcsearchfor,;
lntext_len
lcsearchfor = UPPER(ALLTRIM(pctitle))
lnhwnd = GetActiveWindow()
lnnext = 2
lctitle_bar = ""
Do WHILE lnhwnd # 0
If type('lnhwnd') # 'N'
Loop
Endif

lctitle_bar = SPACE(200) + CHR(0)
lntext_len = GetWindowText(lnhwnd, @lctitle_bar, 200)
lctitle_bar = UPPER(LEFT(lctitle_bar, lntext_len))
lldone = (lcsearchfor $ lctitle_bar)
lp=lnhwnd
lnhwnd = iif(lldone, 0, GetWindow(lnhwnd, lnnext))
Enddo
Return lldone
*
* End of Code



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Newton
Sent: 14 January 2008 16:10
To: profox@leafe.com
Subject: Shellexecute problem

Hi all

I placed Dave's code in a PRG called PrintFile.PRG which accepts as a 
parameter the full path and name of the file to print.

Elsewhere I have some code that looks like this:

 Create text file MyFile.TXT
= PrintFile("MyFile.TXT")
ERASE("MyFile.TXT")

This causes a problem because notepad cannot find the file to print - I 
need to somehow wait until Notepad finsihes with the file and only then 
let the ERASE command execute.  Any suggestions ?

Also is there a way to prevent Notepad printing the file with a 
(filename) header and (page number) footer ?

Many thanks

Paul Newton


Dave Crozier wrote:
> * API Call to print out or OPEN a document
>
> Declare Integer ShellExecute In Shell32.Dll ;
>   INTEGER nWinHandle,;
>   STRING cOperation,;
>   STRING cFileName,;
>   STRING cParameters,;
>   STRING cDirectory,;
>   INTEGER nShowWindow
>
> ShellExec("test.pdf","","c:\temp\")
>
> *
> Procedure ShellExec (exeName, exeParms, exePath)
> Local nStat, errorDesc
>
>   * Use the next line to View
>   * nStat = ShellExecute(0,"open",exeName,exeParms,exePath,1)
>
>   * Use the next line to Print
>   nStat = ShellExecute(0,"print",exeName,exeParms,exePath,1)
>
>   * If nStat > 32, then it is the Instance Handle
>   * To get a Windows Handle see support.microsoft.com/kb/q242308/
>   If nStat <= 32
>   errorDesc = Icase(nStat=2,"Invalid path or filename", ;
>   nStat=8,"Insufficient memory", ;
>   nStat=11,"invalid EXE file", ;
>   nStat=31,"Invalid action, or no application
> associated with the specified file", ;
>   "Error description not available")
>   Messagebox("Error "+Ltrim(Str(nStat))+" ...
> "+errorDesc,16,"Program did not start.",2000)
>   Endif
>
> Return
>
> Dave Crozier
>   



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
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.


RE: Shellexecute problem

2008-01-14 Thread Eurico Chagas Filho
Hi

If all you want is to print the file, you could use a procedure
called SendToPrint() posted by Michael.

HTH, E.

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.0/1216 - Release Date: 09-Jan-08
10:16





___
Post Messages to: ProFox@leafe.com
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.


Re: Shellexecute problem

2008-01-14 Thread Paul Newton
Vince

That reminds me of the one about "miracles and impossibilities" :-)

Paul Newton

Vince Teachout wrote:
> Paul Newton wrote:
>   
>> Also is there a way to prevent Notepad printing the file with a 
>> (filename) header and (page number) footer ?
>> 
>
> I can help with the easy part.  In Notepad, open File, page setup, and 
> delete the header and footer stuff.
> I don't think that can be done programatically, though.
>
>
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
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.


Re: Shellexecute problem

2008-01-14 Thread Vince Teachout
Paul Newton wrote:
> Also is there a way to prevent Notepad printing the file with a 
> (filename) header and (page number) footer ?

I can help with the easy part.  In Notepad, open File, page setup, and 
delete the header and footer stuff.
I don't think that can be done programatically, though.


___
Post Messages to: ProFox@leafe.com
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.