Re: Command button to take a photo

2016-10-20 Thread Andrew Stirling

Heres another article
http://www.ml-consult.co.uk/foxst-29.htm



Andrew Stirling

On 20/10/2016 22:44, Chris Davis wrote:

http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi

On 20 Oct 2016, at 22:37, Sytze de Boer 
> wrote:

In my application, which will be installed on a tablet or laptop, I need a
command button which will take a photograph.

As I understand it, these photos will always automatically be stored in a
specific folder.
Is this possible?
Is there someone who has done this and willing to share the source?



--
Kind regards,
Sytze de Boer



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


___
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/b58dc1bc-0dee-99e0-c455-afe4f0d93...@calcpay.co.uk
** 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: [NF] VMWare Player Not Finding Host Printers - Solved

2016-10-20 Thread Charles Hart Enzer, M.D.
Solution:

Googling, many have had this problem with VMWare Workstation Player 12.

I have two solutions:

   1. Print to a PDF printer
   2. Save on Host Desktop
   3. Print the PDF with Host Printer


   1. Install network printer using the printer's URL
  - http://192.168.200.100

And I read on Wikipedia that 800 staff were fired:

*https://www.thurrott.com/windows/64213/layoffs-at-vmware-to-impact-workstation-and-fusion-virtualization-products*



*http://www.zdnet.com/article/vmware-swears-it-will-continue-to-support-fusion-and-workstation/*




*Charles Hart Enzer, M.D., FAACAPVolunteer Associate Professor of
PsychiatryUniversity of Cincinnati Medical CenterWebSite:
http://homepages.uc.edu/~enzerch/ *

*Integrity:*

*  Doing the Right Action --*

*  Including When None Are Watching*


On Tue, Oct 18, 2016 at 5:22 PM, Charles Hart Enzer, M.D. 
wrote:

> Dear Dave:
>
> Can you suggest a next step for my VMWare Player not finding host printers?
>
> After upgrading to WIN10, my guest OS on VMWare Player can't see host
> printers.
>
> On the Host, I have enabled sharing for the printers.
>
> What is my next step?
>
> VMware Player Workstation 12 Version 12.5.0
>
> Host OS
> WIN 10 Home
>
> Guest OS
> XP Pro
> ​
> Charles
>


--- 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/CAFSdja0tw6pUCFKVxxc+OKf1OBRtzTh-=aoxoogxwvqnj--...@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: Command button to take a photo

2016-10-20 Thread Sytze de Boer
Hello Chris and Darren

I have not yet had time to check out your responses, but I want to thank
you for the quick responses.

Do you think the process is the same for an in-built camera as it is for a
usb camera?


On Fri, Oct 21, 2016 at 10:52 AM, Darren  wrote:

> If you have an image on a form similar to the situation in the link below
> then it is a relatively simple matter to use the API to define a rectangle
> and capture that as a bitmap image file. Also relatively easy to convert to
> other image formats using for example the offering in gdiplus. I am sure a
> number of other options exist too. So yes - possible.
>
> -Original Message-
> From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Chris
> Davis
> Sent: Friday, 21 October 2016 8:45 AM
> To: profoxt...@leafe.com
> Subject: Re: Command button to take a photo
>
> http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi
>
> On 20 Oct 2016, at 22:37, Sytze de Boer
> > wrote:
>
> In my application, which will be installed on a tablet or laptop, I need a
> command button which will take a photograph.
>
> As I understand it, these photos will always automatically be stored in a
> specific folder.
> Is this possible?
> Is there someone who has done this and willing to share the source?
>
>
>
> --
> Kind regards,
> Sytze de Boer
>
>
> --- 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/cag1nny-kmsw57pvwwign8upng6suqw0dpfse0bwuzggsmhj...@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.


[NF] Need SyncBackSE alternative

2016-10-20 Thread Ken McGinnis
I learned about SyncBackSE on this list years ago and have been using it 
successfully.


However, I have been moving my backups to 5TB drives and SyncBack cannot 
handle it. Yes, it does work with large drives; the problem is that 
stupid (my opinion of course) need to 'scan' the drives before even 
starting the copy/mirror. I often get an error that stops the program 
related to 'out of memory' during the scan. My main backup system is a 
ASUS Win10 computer with 16GB memory and 52 TB of storage internally and 
on external drives. It seems to me that should be enough memory for a 
computer that is used primarily for backing up drives on other computers 
on the network. The other issue is the failure to be able to email a log 
and access a FTP server if I am using the Win10 built in administrator 
(I won't tell you my opinion about M$ decision to have 2 levels of 
Admin) Note that Filezilla client can access the FTP server with no 
problem regardless of the login so I know there is no problem with the 
credentials or FTP server or internet access.


I found mention about WinSCP in my notes and I see that I tried it in 
2014 and decided not to use it (I don't remember why not?)


Anyone have any suggestions?


Xcopy, of course, handles any drive any size but does not have some 
options that are important to me.


[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/f9948f90-1f7e-7fb4-4ea7-6073a57d8...@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: [NF] Save Video from cable TV

2016-10-20 Thread Ken Kixmoeller (ProFox)
On Thu, Oct 20, 2016 at 3:41 PM, Ted Roche  wrote:

> Snazzy hat, Ken.


Thanks! I like hats. I have lots of them. My dearest one likes them
somewhat less (or at least the *number* of hats I have).

Thanks for watching. Weird to have a celebrity dog


--- 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/CAFyV=L=pyox+tip7jpoz+rq1zr5sxuaejtphrs+8fgotzdu...@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: Command button to take a photo

2016-10-20 Thread Darren
If you have an image on a form similar to the situation in the link below
then it is a relatively simple matter to use the API to define a rectangle
and capture that as a bitmap image file. Also relatively easy to convert to
other image formats using for example the offering in gdiplus. I am sure a
number of other options exist too. So yes - possible.

-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Chris
Davis
Sent: Friday, 21 October 2016 8:45 AM
To: profoxt...@leafe.com
Subject: Re: Command button to take a photo

http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi

On 20 Oct 2016, at 22:37, Sytze de Boer
> wrote:

In my application, which will be installed on a tablet or laptop, I need a
command button which will take a photograph.

As I understand it, these photos will always automatically be stored in a
specific folder.
Is this possible?
Is there someone who has done this and willing to share the source?



--
Kind regards,
Sytze de Boer


--- 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/007401d22b1c$51cf6270$f56e2750$@ozemail.com.au
** 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: Command button to take a photo

2016-10-20 Thread Chris Davis
http://fox.wikis.com/wc.dll?Wiki~VideoCaptureApi

On 20 Oct 2016, at 22:37, Sytze de Boer 
> wrote:

In my application, which will be installed on a tablet or laptop, I need a
command button which will take a photograph.

As I understand it, these photos will always automatically be stored in a
specific folder.
Is this possible?
Is there someone who has done this and willing to share the source?



--
Kind regards,
Sytze de Boer


--- 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/bf231a25-da88-4933-a1a9-2ed55c00a...@actongate.co.uk
** 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.


Command button to take a photo

2016-10-20 Thread Sytze de Boer
In my application, which will be installed on a tablet or laptop, I need a
command button which will take a photograph.

As I understand it, these photos will always automatically be stored in a
specific folder.
Is this possible?
Is there someone who has done this and willing to share the source?



-- 
Kind regards,
Sytze de Boer


--- 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/CAG1nNy9qOckBT9RQs7fooPYCXP=fnvnpvssx15qu2mxdbda...@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: [NF] Save Video from cable TV

2016-10-20 Thread Ted Roche
Snazzy hat, Ken.

On Thu, Oct 20, 2016 at 4:17 PM, Ken Kixmoeller (ProFox)
 wrote:
> Well, after all of that, the station *did* put the segment on their website:
>
> -- http://www.fox9.com/good-day/212638410-story
>
> Oh, well, I have a new toy to play with! I appreciate your help very much,
> as always. You all Rock. Seriously.
>
> Ken
>
>
> --- 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/cacw6n4sqpuqj6azuj_i+4vgchyopx-xtnp9g_wpofwnzvjn...@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: [NF] Save Video from cable TV

2016-10-20 Thread Ken Kixmoeller (ProFox)
Well, after all of that, the station *did* put the segment on their website:

-- http://www.fox9.com/good-day/212638410-story

Oh, well, I have a new toy to play with! I appreciate your help very much,
as always. You all Rock. Seriously.

Ken


--- 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/CAFyV=lnjnk5xhemfjc90nfrnnwncvhky70mkuvnxctxueuz...@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: Best way to determine file size from VFP9SP2 app using Excel automation

2016-10-20 Thread mbsoftwaresolutions

On 2016-10-20 12:32, Michael Glassman wrote:

Why not just use adir()?
= adir(a, "automation.xlsx")
? a[1, 2]

Mike



Yep...just posted that exactly and then saw this post!  Thanks!

___
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/d964316e7d4eba94bef27d0135be3...@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: Best way to determine file size from VFP9SP2 app using Excel automation

2016-10-20 Thread mbsoftwaresolutions

On 2016-10-20 12:25, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote:

My VFP9SP2 app creates an Excel file via automation.  I want to echo
back to the originating form the filename and filesize created.  I
checked out the FSIZE command but wondered if there was a better way
to determine the outputted file size?  These files are being created
on a network drive, most likely (unless the user chooses a local
drive).  WSH (Windows Scripting Host) comes to mind (but not sure if
that's locked down).

tia,
--Mike


Looking at Ted's ADIR logic in another thread and testing it 
herethat will work if I simply give the full path+filename for the 
file created!!!


:-)



___
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/2a1ced716f5e81763d6d00cc4a22f...@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: Best way to determine file size from VFP9SP2 app using Excel automation

2016-10-20 Thread Michael Glassman
Why not just use adir()?
= adir(a, "automation.xlsx")
? a[1, 2]

Mike



-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of
mbsoftwaresoluti...@mbsoftwaresolutions.com
Sent: Thursday, October 20, 2016 10:26 AM
To: profoxt...@leafe.com
Subject: Best way to determine file size from VFP9SP2 app using Excel
automation

My VFP9SP2 app creates an Excel file via automation.  I want to echo back to
the originating form the filename and filesize created.  I checked out the
FSIZE command but wondered if there was a better way to determine the
outputted file size?  These files are being created on a network drive, most
likely (unless the user chooses a local drive).  WSH (Windows Scripting
Host) comes to mind (but not sure if that's locked down).

tia,
--Mike


[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/05a001d22aef$7f0092a0$7d01b7e0$@PioneerDrama.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: Speeding up a Powershell script

2016-10-20 Thread mbsoftwaresolutions

On 2016-10-19 10:31, Peter Cushing wrote:

On 19/10/2016 14:51, Dave Crozier wrote:

Or:

for i in $(find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | 
sort -u); do echo "$i"": ""$(du -hac **/*."$i" | tail -n1 | awk 
'{print $1;}')"; done | sort -h -k 2 -r


Assuming you have extglob enabled:
   shopt -s extglob


Feck me Dave, what was tha



LOL!

___
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/7ebd8f6d4b6a488fb57f867dfde05...@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.


Best way to determine file size from VFP9SP2 app using Excel automation

2016-10-20 Thread mbsoftwaresolutions
My VFP9SP2 app creates an Excel file via automation.  I want to echo 
back to the originating form the filename and filesize created.  I 
checked out the FSIZE command but wondered if there was a better way to 
determine the outputted file size?  These files are being created on a 
network drive, most likely (unless the user chooses a local drive).  WSH 
(Windows Scripting Host) comes to mind (but not sure if that's locked 
down).


tia,
--Mike


___
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/3ac24cc8482e31d4d2bafa7c05bd8...@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: Speeding up a Powershell script

2016-10-20 Thread Ted Roche
Well, I suppose if I wanted a console program, I could have used
FP-DOS, though SYS(2000) and FSIZE() instead of ADIR().

But I have a SQL-queryable cursor and can use the report writer or
textmerge to produce output in the format desired.

On Thu, Oct 20, 2016 at 9:35 AM, Man-wai Chang  wrote:
> I actually wrote and compiled a console C program to do it using VS 2013 Pro. 
> :)
>

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.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/CACW6n4uyS=7nx+gmgnlpbkwcuwahd3hw0owxtq616nvkamm...@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: Speeding up a Powershell script

2016-10-20 Thread Stephen Russell
It is .NET for the command line.  You ask specific commandlets to get data
for you and then iterate through it.  In this case you are making a new
container object to hold the "new look" as I vaguely remember.

Currently in my own SharePoint hell of an upgrade that duped all list
contents in 2013 test.  This kills a friging day removing the dupes..

On Thu, Oct 20, 2016 at 8:29 AM, Man-wai Chang  wrote:

> It's native query language is definitely not 100% basic ANSI SQL ...
>
> On Wed, Oct 19, 2016 at 9:43 PM, Malcolm Greene 
> wrote:
> > A great use case for getting your feet wet with Python.
> >
> > BTW: Powershell syntax wants me to gouge my eyes out. Anyone else feel
> > the same way?
>
> --
>  .~. Might, Courage, Vision. SINCERITY!
> / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
> /( _ )\ http://sites.google.com/site/changmw
> ^ ^ May the Force and farces be with you!
>
[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/cajidmyl74oxr2vpldecujbh8t3dxgvnnez9ny1cy3t0e9bx...@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: Speeding up a Powershell script

2016-10-20 Thread Dave Crozier
Man-Wai,
I hope you didn't take the comment as disrespectful as It wasn't meant to be in 
any way at all ;-)

I must admit that Powershell is a little like Regular Expressions in that once 
you use it on a regular basis it seems simple but if you only visit it once in 
a blue moon then the learning or re-learning curve is huge!

Hope you found a solution anyway.

Dave

-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Man-wai Chang
Sent: 20 October 2016 14:35
To: ProFox Email List <profox@leafe.com>
Subject: Re: Speeding up a Powershell script

I actually wrote and compiled a console C program to do it using VS 2013 Pro. :)

https://sites.google.com/site/changmw/scripting/dire/dire-20161020.zip?attredirects=0=1

On Thu, Oct 20, 2016 at 4:13 AM, Ted Roche <tedro...@gmail.com> wrote:
> 30 lines in VFP. As a bonus, you end up with a cursor of data, and an 
> on-topic thread!

--
 .~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3) /( _ )\ 
http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

[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/18725b8cd2d5d247873a2baf401d4ab2a434a...@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: Speeding up a Powershell script

2016-10-20 Thread Man-wai Chang
I actually wrote and compiled a console C program to do it using VS 2013 Pro. :)

https://sites.google.com/site/changmw/scripting/dire/dire-20161020.zip?attredirects=0=1

On Thu, Oct 20, 2016 at 4:13 AM, Ted Roche <tedro...@gmail.com> wrote:
> 30 lines in VFP. As a bonus, you end up with a cursor of data, and an
> on-topic thread!

-- 
 .~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

___
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/CAGv=mjczvti6ump-+jwvd7aucjdemnmzobaujsbjmu5jcof...@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: Speeding up a Powershell script

2016-10-20 Thread Man-wai Chang
Powershell does not have awk and find. Are you using portable Ubuntu
in Windows 10?

On Wed, Oct 19, 2016 at 9:49 PM, Dave Crozier  wrote:
> Linux:
>
> find . -type f -printf "%f %s\n" |
>   awk '{
>   PARTSCOUNT=split( $1, FILEPARTS, "." );
>   EXTENSION=PARTSCOUNT == 1 ? "NULL" : FILEPARTS[PARTSCOUNT];
>   FILETYPE_MAP[EXTENSION]+=$2
> }
>END {
>  for( FILETYPE in FILETYPE_MAP ) {
>print FILETYPE_MAP[FILETYPE], FILETYPE;
>   }
>}' | sort -n

> > {
> >Write-Host "Counting ... $Ext = " -NoNewline
>  >   $Files = $AllFiles | Where { $_.Extension -eq $Ext.Extension }
>   >  $FilesSum = ($Files | Measure-Object Length -Sum).Sum
>   >  Write-Host $FilesSum

-- 
 .~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

___
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/CAGv=MJCoQFjNG9MjT62QzijMvFP16Bm0P1tKByuk=3kjeea...@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: Speeding up a Powershell script

2016-10-20 Thread Man-wai Chang
For the record:

I speak Cantonese and it is quite different from both Mandarin
(Taiwan) and Putonghua (Beijing)!
And  the PLA army speaks Putonghua. :)

On Wed, Oct 19, 2016 at 9:45 PM, Dave Crozier  wrote:
> For a moment I thought the script was written in Mandarin!
> Totally unintelligible unless you deal with it all day long.

-- 
 .~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

___
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/CAGv=mjaiel9_yt7yovganxkgzwv7rzz7vzqquhqqwwecfmx...@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: Speeding up a Powershell script

2016-10-20 Thread Man-wai Chang
It's native query language is definitely not 100% basic ANSI SQL ...

On Wed, Oct 19, 2016 at 9:43 PM, Malcolm Greene  wrote:
> A great use case for getting your feet wet with Python.
>
> BTW: Powershell syntax wants me to gouge my eyes out. Anyone else feel
> the same way?

-- 
 .~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

___
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/CAGv=MJB5_3pVPT2T-FZdXTu-igbe4p=0wyby6zil9g9zmxw...@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.