PowerShell Sample Scripts

I am listing some of the commonly used PowerShell scripts which might make your life little easier. Files and Folders GetFiles: Get files count in a folder GetFiles("c:\temp", "*.*").Count get-ChildItem : Enumerating files in a folder $dirpath="c:\temp" foreach ($file in get-ChildItem -Path $dirpath\* -Include *.*) { $file.FullName } Filtering files in a folder. Below script is showing … Continue reading PowerShell Sample Scripts

Advertisements

Send Email via Asp.net Web application hosted on godaddy

This article is providing the fix for the issue while sending emails from the web applications hosted on Godaddy server. Recently I faced an issue while sending emails from a website which is hosted on GoDaddy server. I used Zoho SMTP server to send the emails because I am using that email server. I used below code … Continue reading Send Email via Asp.net Web application hosted on godaddy

Suspend or resume windows controls to be redraw

Recently, I was facing issue with third party Image Viewer to apply multiple operations before redrawing of images. Third-party control was not allowing to suspend and resume painting of images inherently. After searching for various solutions, I found a solution that can be achieved using windows message "WM_SETREDRAW" from an application to Windows to allow … Continue reading Suspend or resume windows controls to be redraw

Importance of Use Case Document

“JSON, XML, .Net, C++, Java, Middleware”. These are some of the technical jargon which many IT professionals use while having a discussion with business users to implement business requirements. Business users might not be interested into how the system will be developed technically. Mostly, they are interested in if the proposed or existing systems are … Continue reading Importance of Use Case Document

Convert base64 string into file using Java script

Here you find java script code convert base64 string to file. I converted excel file to base64 string to demo example. I did it in c# code. Code to convert file into Base64 using System; using System.IO; using System.Linq; namespace Demo { public class Program { public static void Main(string[] args) { var fileBytes = … Continue reading Convert base64 string into file using Java script