Quote for the day in Email Signature

Automating the outlook signature involves many things by gathering information from AD, environmental variable and so on.

We have seen people using inspirational quotes in bottom of their signature and periodically they change the quotes. …

When you delete files and folder, the data is not initially removed from the hard disk. Instead, the space on the disk that was occupied by the deleted data is “deallocated.” After it is deallocated, the space is available for use when new data is written to the disk. …

We may have lot of files in desktop some times 20,40 and go on. Too many word doc, excel, Jpeg and screenshot, text files. we would have face a situation where we will be searing a file in desktop one by one. So thought of having a folder for each extension. This script will create a folder with extension name and move those files with respective folders

Powershell code

$DesktopPath = [Environment]::GetFolderPath(“Desktop”)
$Dir = get-childitem $DesktopPath -file
$Dir | foreach-Object{
$extname= $_.extension
$Dname=$_.DirectoryName
$Fname=$_.FullName
$extFolder=$Dname+”\”+$extname
CreateFolder ($extFolder)
MoveFile ($Fname,$extFolder)
}
Function CreateFolder ($extFolder){
If(!(test-path $extFolder))
{
New-Item -ItemType Directory -Force -Path $extFolder
}
}
Function MoveFile ($source,$destination) {
Move-item -path $Fname -Destination $extFolder
}

ReginR

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store