About 1,960,000 results
Open links in new tab
  1. Windows batch files: .bat vs .cmd? - Stack Overflow

    Sep 29, 2008 · .ps1 is a Windows PowerShell file which is an entirely different language from .bat/.cmd batch files.

  2. How do I make a batch file recognize file extensions in For loop?

    May 14, 2021 · 0 I'm trying to make a batch file, a newer one than the one I made last time, and I'm planning to add to my previous program, for organize all of the respective images it finds into folders …

  3. Batch: Remove file extension - Stack Overflow

    Jul 9, 2010 · For instance %~dpn0 will return the path of the batch file without its extension, %~dpn1 will be %1 without extension, etc. Whereas %~n0 will return the name of the batch file without its …

  4. Delete all files of specific type (extension) recursively down a ...

    I wrote a batch script a while ago that allows you to pick a file extension to delete. The script will look in the folder it is in and all subfolders for any file with that extension and delete it.

  5. windows - change file extension in batch - Stack Overflow

    May 15, 2016 · change file extension in batch Asked 9 years, 7 months ago Modified 4 years, 4 months ago Viewed 18k times

  6. Getting the file name without extension in a Windows Batch Script

    Change the action to call a batch file: RunCompressor.bat "%1" Use %~n1 to get the filename without the extension in RunCompressor.bat: start javaw.exe -jar yuicompressor-2.4.2.jar -o "%~n1.min.js" …

  7. How to run batch script without using *.bat extension

    Mar 29, 2018 · The script must have an extension (either .BAT or .CMD) to let Windows know it is a batch script. I don't think it is possible to define your own extension that equates to a batch file, nor is …

  8. How to run a PowerShell script within a Windows batch file

    Aug 30, 2015 · Windows PowerShell console file extension must be psc1. CMD isn't really altogether happy with the situation either - although it does stumble on '#', it is not recognized as an internal or …

  9. How can I bulk rename files in PowerShell? - Stack Overflow

    Rename-Item c:\misc\*.xml *.tmp I basically want to change the extension on every files within a directory to .tmp instead of .xml. I can't seem to find a straight forward way to do this in PowerShell.

  10. Add text to end of filename (but before extension) using batch file

    This line of code will loop through all the files matching *.txt and perform a rename command (ren) on each filename. %a is the full file name, %~a is the filename without extra quotes added (quotes are …