PowerShell icon indicating copy to clipboard operation
PowerShell copied to clipboard

Hard coded drive C is incorrect

Open lextm opened this issue 3 years ago • 0 comments

https://github.com/MicksITBlogs/PowerShell/blob/master/InstallFonts.ps1#L51 and https://github.com/MicksITBlogs/PowerShell/blob/master/InstallFonts.ps1#L53 relies on hard coded drive C, but Windows can be installed to any drive. You should use windir environment variable instead.

lextm avatar Feb 09 '22 07:02 lextm