Powershell

Convert .doc files to .txt using Windows Powershell

This simple script converts Microsoft Word .doc files to .txt files for my txt/log file scan through script to sift through. 

# Run through all doc-type files in a folder and convert them in to .txt-files

 

function wordConversion{

 

# Specify location

$location = Get-Location

# Get all doc-files

$files = Get-ChildItem -Filter *.doc*

 

# Create word-object

 

$word = New-Object -ComObject 'Word.Application'

 

Powershell text search tool

Text search tool in Powershell

Wrote a quick search tool for Windows that uses some cmdlets from Powershell to search through txt-files,finds certain key words and writes them in a easily readable format inside a potentially user defined outfile. (github)

The tool ask for the file being searched for and the word that the user want's to search these files for.