About 26,400 results
Open links in new tab
  1. What are the different PowerShell file types? - Stack Overflow

    Jun 27, 2020 · .ps1 files are PowerShell scripts; it is the most common type of PowerShell file and one that is the most like other shell scripts like .sh, .bat files .psm1 files are PowerShell modules; these …

  2. windows - File extension for PowerShell 3 - Stack Overflow

    Aug 24, 2012 · All of us probably know .bat for Batch files. But what is the file extension for PowerShell 3 scripts? I found .ps1 and some other endings but they're only for version 1.

  3. powershell - extract file name and extension - Stack Overflow

    Mar 20, 2012 · 145 I need to extract file name and extension from e.g. my.file.xlsx. I don't know the name of file or extension and there may be more dots in the name, so I need to search the string …

  4. Removing path and extension from filename in PowerShell

    Sep 20, 2012 · When Get-Item, Get-ChildItem, or their aliases ls, dir, gi, gci are used, the file from the tested string must exist. When we are checking a series of string and not iterating through a …

  5. How to retrieve recursively any files with a specific extensions in ...

    For a specific folder, I need to list all files with extension .js even if nested in subfolders at any level. The result for the output console should be a list of file names with no extension line by line to be easily …

  6. Execute any file as powershell script - Stack Overflow

    Jun 3, 2015 · Powershell is designed such that executing or dot sourcing a file requires a .ps1 extension, and Powershell.exe will refuse to run any file that doesn't have that extension. One way to …

  7. PowerShell Change File Extension - Stack Overflow

    Jul 10, 2019 · 1 Changing file extension of files in a folder if the file was created yesterday. This is to change the file extension path from .comh to .txt

  8. Use .pwsh instead of .ps1 extension for PowerShell Core scripts?

    Aug 29, 2019 · From the documentation: -PSEdition <PSEdition-Name> Specifies a PowerShell edition that the script requires. Valid values are Core for PowerShell Core and Desktop for Windows …

  9. Powershell script not firing from batch file - Stack Overflow

    Feb 23, 2017 · To run a script file from the command line, use the -file parameter of powershell.exe.

  10. File Output in Powershell without Extension - Stack Overflow

    Nov 13, 2012 · File Output in Powershell without Extension Asked 13 years, 1 month ago Modified 3 years, 11 months ago Viewed 40k times