====== PowerShell Commands ====== Powershell commands that you can run directly from a directory you are inside. Open the directory, shift + right-click in that directory, open powershell. Paste the script. ==== Generate File Names With Extension (clean) ==== This will make a .txt file in that same directory with the files with all the names. It will be a clean list other than adding the txt file to the list of course. This will have extension included: # Save as: ListFileNames-WithExtension.ps1 Get-ChildItem -File | Select-Object -ExpandProperty Name | Out-File -FilePath "$PWD\filenames.txt" -Encoding UTF8 Next is same thing but no extensions: # Save as: ListFileNames-NoExtension.ps1 Get-ChildItem -File | Select-Object -ExpandProperty BaseName | Out-File -FilePath "$PWD\filenames.txt" -Encoding UTF8 Next will generate two text files, one with, one without extension in the file name list: Get-ChildItem -File | Select-Object -ExpandProperty Name | Out-File -FilePath "$PWD\filenames_with_ext.txt" -Encoding UTF8 Get-ChildItem -File | Select-Object -ExpandProperty BaseName | Out-File -FilePath "$PWD\filenames_no_ext.txt" -Encoding UTF8