Today, I tried to add the blogger official share buttons on my blog. Just after adding them to my blog, they were not visible.
This blog gives you the fix to apply to the HTML code of your page:
http://www.bloggerplugins.org/2010/06/official-sharing-buttons-on-blogger.html
Tuesday, December 21, 2010
Monday, December 20, 2010
Windows PowerShell Tips
Accessing Values in an Array- Byte Conversion
- Calculating Text File Statistics
- Creating Custom Tables
- Displaying Version Properties of a Group Policy Object
- Even More Things You Can Do With Arrays
- Formatting Dates and Times
- Formatting Numbers
- Fun Things You Can Do With the Get-ChildItem Cmdlet
- Image Mapping API 2.0 Downloads
- Modifying Message Colors
- Modifying a Read-Write Property Using Get-WMIObject
- Reading Text Files
- Referencing Variables and Variable Values
- Removing Items From Arrays
- The String’s the Thing
- Three Things You Might Not Know About Windows PowerShell Functions
- Using Windows PowerShell “Here-Strings”
- Using the Range Operator in Wildcard Queries
- What Is (and What Isn’t) in Our Array?
- Windows PowerShell Tip: Adding a Simple Menu to a Windows PowerShell Script
- Windows PowerShell Tip: Automatic Script Writing Using Get-History
- Windows PowerShell Tip: Creating Formatted HTML Output
- Windows PowerShell Tip: Creating a Custom Input Box
- Windows PowerShell Tip: Creating a Graphical Date Picker
- Windows PowerShell Tip: Creating and Modifying Environment Variables
- Windows PowerShell Tip: Determining the Size of a Folder
- Windows PowerShell Tip: Displaying a Message in the Notification Area
- Windows PowerShell Tip: Filtering Collections With Regular Expressions
- Windows PowerShell Tip: Finding All the Empty Folders in a Directory Tree
- Windows PowerShell Tip: Formatting Numbers and Dates Using the CultureInfo Object
- Windows PowerShell Tip: Getting Information About the Logged-On User
- Windows PowerShell Tip: Getting Rid of a COM Object (Once and For All)
- Windows PowerShell Tip: Listing the TrueType Fonts Installed On Your Computer
- Windows PowerShell Tip: Making Progress
- Windows PowerShell Tip: More Fun with Dates (and Times)
- Windows PowerShell Tip: Multi-Select List Boxes – And More!
- Windows PowerShell Tip: Press Any Key to Continue
- Windows PowerShell Tip: Running Windows PowerShell Scripts Against Multiple Computers
- Windows PowerShell Tip: Running Windows PowerShell Scripts Against Multiple Computers: Part 2
- Windows PowerShell Tip: Selecting Items From a List Box
- Windows PowerShell Tip: Taking Things (Like File Paths) Literally
- Windows PowerShell Tip: Three Things You Might Not Know About Windows PowerShell Functions
- Windows PowerShell Tip: Using Calculated Properties
- Windows PowerShell Tip: Using Test-Path to Verify the Existence of an Object
- Windows PowerShell Tip: Using the Switch Statement
- Windows PowerShell Tip: Working With Custom Objects
- Windows PowerShell Tip: Working With SIDs
- Windows PowerShell Tip: Working With Security Descriptors
- Working with Hash Tables
Saturday, December 11, 2010
Remove duplicates using Powershell
This is a quick powershell script for removing duplicates files from a folder.
I used it for removing duplicates from my music library.
It is simply listing all the duplicates files from a directory and copy them to a back up folder.
I used it for removing duplicates from my music library.
It is simply listing all the duplicates files from a directory and copy them to a back up folder.
$musicFolder = "c:\MyFolder" $backupFolder = "c:\Backup" echo "Get duplicates" $dupmusics = ls $musicFolder -recurse | Group-Object Length, LastWriteTime | Where { $_.Count -gt 1 } if($dupmusics.Length -gt 0) { echo "Move duplicates" $dupmusics = $dupmusics | ForEach-Object { $_.Group[1..$_.Group.Count] } | Move-Item -Destination $backupFolder -Verbose } else { echo "no duplicates found" }
Subscribe to:
Posts (Atom)