Code Samples
SQL Server

Sometimes rather than returning a table column its necessary to Select from nested Select statements. Below is a sample of using such a query...
sql
PowerShell

This sample defines a PowerShell function that zips all files in a directory...
This sample defines a PowerShell function that adds a date stamp to all files in a directory. By default it adds a stamp in the format _yyyy.MM.dd, but a different format can be passed in through a pa...
This sample defines a PowerShell function that lists files in a directory that haven't been modified for x number of days. The function takes a parameter which specifies the number of days...
This sample shows how you can add some code in your PowerShell profile to change the shell appearance. The following code will give you a dark appearance similar to a Linux or a Matrix look. Add the f...
This sample creates a PowerShell function that lists files that are owned by the specified user and optionally match a mask. By default the function will match all users and files in the current direc...
This sample creates a PowerShell function that lists details about disk drives on a machine. By default it will list details about all drives, but you can also supply a specific drive name: ...
This sample demonstrates how to process files from a source directory and then move them to another location. This script remains active always and checks for new files every 30 seconds. Currently it ...
This sample defines a PowerShell function that lists CPU intensive processes running on a machine. If you call the function without any parameters it will list the top 5 CPU intensive processes. Howev...
This sample defines a PowerShell function that lists files in a directory that were modified on a given date...

© 2024 Embrs.net