Skip to content

David Costello

dmcostello.com

  • Home
  • About
  • Articles
    • Internet
    • Programming
    • Uncategorised
  • Projects
  • Resources
    • Downloads
    • Links
  • Contact

Command Line

Code Scraps: Script zipping, transfer and unzipping in a Windows Batch Script

14th October 202014th October 2020 @davidcostello42

This code scrap illustrates how you can have a Batch File create a deployment zip, transfer the zip to a target server, and then unzip at the other end. Zipping […]

 Code Scraps, Programming  Automated, Batch Scripts, Command Line, Deployment, Zip  Leave a comment

Code Scraps: Send TeamCity the date and time during builds on Windows

4th December 20184th December 2018 @davidcostello42

Having the date and time available to you during a TeamCity build is very useful – but this information isn’t always available by default to TeamCity. Here is a Windows […]

 Code Scraps, Computing, Programming  Batch Scripts, Command Line, Continuous Integration, Dates, Programming, TeamCity, Time, Windows  Leave a comment

Remote Desktop Connections in Windows 10

11th July 201811th July 2018 @davidcostello42

Recently a Windows update was published by Microsoft that can cause errors connecting to hosts using the Remote Desktop Connection application. The error that displays actually explains the nature of […]

 Computing, Security  Command Line, Remote Desktop, Security, Windows  Leave a comment

Programmatically storing your Database for Source Control

18th June 201817th September 2018 @davidcostello42

Databases are often a critical part of most applications today. But how do you go about storing them for Source Control purposes? There are a number of approaches – the […]

 Programming  Bash, Batch Scripts, Command Line, GIT, MySQL, Oracle, Poweshell, Programming, Shell, Source Control, SQL, SQL Server, SQLite, SVN  Leave a comment

Deleting files in a directory older than a number of days

15th June 2018 @davidcostello42

Here’s a quick Windows Powershell script to delete all files in a folder that are older than a certain number of days. # Delete all Files in <directory> older than […]

 Code Scraps, Computing, Programming  Command Line, Poweshell, Programming, Windows  Leave a comment

Code scraps: Get all files of a type in Windows

31st May 201831st May 2018 @davidcostello42

This extends upon my previous code scrap for listing all files in Windows. If you want to produce a list of just a certain type of files in a directory […]

 Code Scraps, Computing, Programming  Batch Scripts, Command Line, Windows  Leave a comment

Code Scraps: Lookup an Active Directory user on the command line

3rd May 20183rd May 2018 @davidcostello42

I’ve worked in a few big organisations and I’ve found that using Outlook to look up colleagues can be difficult if you don’t know someone’s first name. So I’ve often […]

 Computing  Active Directory, Command Line, Windows  Leave a comment

Computing Trivia: Molly-guards

14th April 201825th June 2018 @davidcostello42

Did you know that the protective plastic or glass shield over an important button is colloquially called a Molly-guard? You can also get a script for Unix PC’s called molly-guard […]

 Computing  Bash, Command Line, Linux, Random, Trivia  Leave a comment

Securely erasing a hard drive

29th October 20172nd January 2018 @davidcostello42

Recently a relative of mine asked if I could get rid of a couple of old desktop computers and a laptop. The relative had removed all their important files from […]

 Computing, Security  Bash, Command Line, Linux  Leave a comment

Code Scraps: Symbolic Links on Windows; Junctions and Hard Links

24th September 2017 @davidcostello42

Did you know Windows can do its own equivalent of Linux Symbolic Links? It’s been able to do them for quite a while, but it’s not something a lot of […]

 Code Scraps, Computing  Command Line, Programming, Windows  Leave a comment

Posts navigation

← Older posts

Search

Archives

  • January 2021
  • October 2020
  • March 2019
  • January 2019
  • December 2018
  • October 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • June 2014
Proudly powered by WordPress | Theme: Moesia by aThemes