Friday, July 31, 2015

How do I include the date in a Windows Batch file?

I have used this many time in Windows batch files.

You can set any variable, in my example below called "thedate" to a substring of the computers date to produce only the numbers without any "/" in case this needs to be used in creating folder or file names.

For my example I would like to use a script to create a photos folder with the date in the name:

set thedate=%date:~-4,4%%date:~0,2%%date:~-7,2%

then you can show your output

echo %thedate%
 I then use

mkdir photos_%thedate%

to create a folder called "photos_20150727"














The above was created using Window 7.

Hope this help







Wednesday, July 29, 2015

How many innocent pc users fall for this trap?

Another not really new but new enough phone scam is going around. 
The companies and callers could sound very legitimate using all the correct buzz words but they are just tyring to fool you into giving them your credit card.

The scam goes like this.
  • You may get a call caliming to be from "Microsoft Support" or another Computer Tech Services company claiming that your pc is infected and they they need to connect to your pc to fix it. 
  • If you fall for this, the company will charge your credit card and then pretend to fix your computer. but in reality not do anything (or could even be infecting your pc further)
  • After a couple of days a second call may come alerting you that the first caller was a scam and that for an additional large sum of money they will clean up what the first scam company did.
  • They would then charge your credit card again.

You have now be scammed twice likely by the same company.

Most of these scams orginate from outside of the USA so there is little that anyone can do to prosecute these criminals


DO NOT FALL FOR THIS.
Always use uptodate Antivirus and Antimalware software.
For some of my recommended programs please see this link

I hope this prevents even one user from falling for this.

What is using all of my disk space?

What is using all of my disk space?

This is a question I get asked often. While the answer can vary greatly depending on what you do with your computer, the following app can show you in detail where the disk space is being used.


(screen shot from Jam-Software website)

TreeSize free (download from  https://www.jam-software.com/treesize_free/features.shtml ) is an application that can scan a disk or folder and display in order of space used the folders that are taking the most amount of space. It is less that 10MB is size itself so should install even the fullest hard drives.


While I do not recommend blindly deleting any files, this application may help you determine which folders to look at further.


I do not get any compensation from making this mini-review. This post simply intends to help users looking to free disk space.


Hope this helps.

Tuesday, July 28, 2015

Google Chromecast

I know there are many reviews for this out there already but whats one more :)

I recently picked up a Google Chromecast from Amazon. See the link below.
I believe I paid $35 for it. If you don't know what the Chromecast is, it is a small device that you can plug into an HDMI port on a TV and then "cast" content to it from various pc apps as well as phone  or tablet screens.




Personally I use this device to watch movies from a Plex Media server as well as Youtube play lists.

I have used this on vacation to watch content from my tablet as well.

For the price this can't be beat. Pick on up from the link above.


Monday, July 27, 2015

Useful Linux Command - with output redirection

This one has been around for a while but in case you have not come across (and in case I forget myself) here is another useful Linux command:

ls > textfile.txt

This is a simple way to get a list of files in a certain folder and rather than write them to the screen it writes them to a text file that could be used in another script perhaps.

The above command will create a simple list of the file names in a particular directory.

If would like more details on the files you can use

ls -l > textfile.txt

Added the  "-l" (the lowercase letter L) will produce a "long" list with the file details.

This could be used to create a spreadsheet where you could sort or filter the files for some other purpose.


Friday, July 24, 2015

Use SCONFIG in Windows Server 2012

There is a very simple command to help get a Windows 2012 server initially set up.
It is called the Server Configuration Tool and is started by running the command
sconfig
From Microsoft's site

"In Windows Server 2012, you can use the Server Configuration tool (Sconfig.cmd) to configure and manage several common aspects of Server Core installations. You must be a member of the Administrators group to use the tool.
Sconfig.cmd is available in the Minimal Server Interface and in Server with a GUI mode."



For those server admins that like the command line this is one worth trying.