The lazy programmer scripts
scripts that work

Overview for cmd

Lazy remove pesky files on Windows

There are some files on Windows which cannot be trivially removed, even if you are a full Administrator.

This PowerShell script makes sure that you remove them nonetheless.

Tested on Windows 10 x64.

Note: this script does not remove the files that are opened by a Windows process or if the file paths are more than 255 characters.

Written by kami on Thursday August 9, 2018
Permalink - Tags: powershell, windows, cmd

Lazy show Windows volume information

If you need to retrieve verbose volume information, including the UNC/Win32 path, you can check out this repo https://github.com/ader1990/storage-info.

Statically compiled binaries for x86/x64 can be downloaded from the repo.

The x64 binary can be downloaded from https://github.com/ader1990/storage-info/blob/master/Binaries/storage-info.exe.

These binaries work on Windows and do not require any external dependency.

Tested on Windows 7 x86, Windows 10 x64 and Windows Server 2012 R2.

Written by kami on Friday September 1, 2017
Permalink - Tags: windows, binary, powershell, cmd, github, winapi

Lazy lsof for Windows

If you need the lsof functionality on a Windows system, you can check out this repo: https://github.com/cklutz/LockCheck

I have already built the project and you can download the `lsof.exe` binary from https://github.com/ader1990/LockCheck/blob/master/Binaries/lsof.exe.

This binary works on Windows and does not require any external dependency.

Tested on Windows 10 x64.

Written by kami on Friday September 1, 2017
Permalink - Tags: windows, linux, cmd, powershell, binary, visual-studio