Category : scripting

I am getting wrong order while sorting "dir /o:n" D:Softwarestry>dir /o:n Volume in drive D is Data Volume Serial Number is 3C9A-F8CE Directory of D:Softwarestry 15-01-2022 11:06 <DIR> . 15-01-2022 11:06 <DIR> .. 14-01-2022 18:46 4,433,620 1 (1).mp4 14-01-2022 18:46 2,044,557 1 (10).mp4 14-01-2022 18:46 3,576,246 1 (11).mp4 14-01-2022 18:46 4,023,351 1 (12).mp4 14-01-2022 18:46 ..

Read more

PowerShell is giving me the "’Set-Variable’ is not recognized as an internal or external command, operable program or batch file" error when I try to use Set-Variable in my PowerShell (.ps1) script. My usage is: Set-Variable -Name "CURR_VERSION" -Visibility Public -Value (Get-ChildItem C:ProgramData*.exe | Select-Object -ExpandProperty Name) But, in the same window that I’m getting ..

Read more