Tuesday, October 17, 2017

How to find the number of HTML, JPG, etc. files in directories and subdirectories using Windows Power Shell

I wanted to count the number of HTML files in a website, as well as images, etc.

So that I didn't mess up the site I downloaded the files to my Windows 10 computer with FileZilla - a free FTP solution. I then went to the directory containing the documents I wanted to count in the Windows Power Shell - cd changes to a directory, cd .. backs up to the one above where you are.

You can find the Windows Power Shell in Windows 10 by going to the Windows Logo in the bottom left-hand corner of your screen, then choosing All Apps by clicking the bottom icon in the top left-hand corner, then scroll down to W and find Windows Power Shell.

Then I used the command (Get-ChildItem *.*htm* -recurse).count. *.*.htm* was the regular expression I used for a file name (* means anything) because some of the files ended in .shtml and others were .html and maybe some could have been .htm. Then for any files ending in .jp* that gets you jpg or jpeg, plus other variations you type in (Get-ChildItem *.jp* -recurse).count.

Similarly you can count:
 - PDF files with (Get-ChildItem *.pdf -recurse).count
 - PNG image files with (Get-ChildItem *.png -recurse).count


Thursday, February 09, 2017

Stamps.com Add-In Doesn't Work with 64-bit MS Word

Despite downloading the Add-in for Microsoft Word Home and Business 2016 to my Windows 10 64-bit machine it would not install. I could see the Add-in under File - Options - COM Add-ins, but despite trying to click the box to the left of it, it would not install.

After calling Stamps.com I found that it does not support 64-bit MS Word, it only supports the 32-bit version.

So to save you frustration I'm posting this to warn you.

A workaround is to print your envelopes using Mail Merge from MS Word without the stamps and then print them with stamps only from the online version of Stamps.com.

Here's more info  - lest you try to run 32-bit addins on a 64-bit installation.

I haven't tried Endicia? Are there other solutions?

http://stackoverflow.com/questions/3945799/using-32bit-com-addin-under-ms-office-64-bit

Check The Firewall For Norton Internet Security (as of Feb 2017) with Stamps.Com - or any other Program or App

This morning I checked the documentation on Stamps.com for how to configure the Norton Internet Security firewall and found it doesn't have the latest version. So here's how to do it (as it was I found it had already been configured when I eventually got to the right screen), but just in case you want to check too here are the screens.
First open Norton Internet Security. Then choose Settings at the top of the screen.
Next choose Firewall.

Then look at the tabs and choose Program Control.

You'll get a list of programs that are already penetrating the Firewall. It will tell you when you click on a program whether the Firewall is allowing one-way or two-way traffic and in which direction. Scroll down the window until you see the app. 

For Stamps.com the app is called ipostage.exe. Check that this file has supports two-way communications through the firewall.