assorted recipes and links

See also: all the recipes and the intro I have collected here the small groups of recipes and links that are not worthy a separate post each. As usual, some of the recipes are for cmd, some for PowerShell, guessing which is which is easy enough. # Windows CMD command syntax http://ss64.com/nt/syntax.html # To search…

0

how to mount a System partition

As I’ve mentioned before, the on the machines with EFI BIOS the boot files are located on a separate System partition that can be mounted. However the direct mounting of it doesn’t work so well, leaving a drive letter busy even after unmounting. If you want to modify a lot of VHDs for the v2…

0

file operations and search recipes

See also: all the recipes and the intro # find all the files *.txt recursively under a directory, like Unix find dir /s /a dir\*.txt # in PowerShell dir -Recurse -Force “dir\*.txt” # search for text in the files, like find -exec grep # /s is recursive, /r is regexp, /i is ignore-case findstr /s…

0

How to convert a short 8.3 path name to a long path name in PowerShell

Here is another recipe that seems to be far from obvious. I’ve needed to convert a path name that contained elements in the old short 8.3 format to the proper format with the long NTFS names. Turns out, it’s not easy to do in .NET. There is a native call GetLongPathName that does that but…

0