Using a batch file is there a way that I can strip off the .deploy extension from all files in a directory.
For example
1.txt.deploy => 1.txt
2.txt.deploy => 2.txt
etc
Open File Explorer and click View tab, Options. In Folder Options dialog, move to View tab, untick Hide extensions for known file types option, OK. Then you will se file's extension after its name, remove it.
You can do this using the Windows GUI. Enter "*. wlx" in the search box in explorer. Then after the files have been found, select them all (CTRL-A) and then delete using the delete key or context menu.
RENAME *.txt.deploy *.
A more 'fancy' solution:
@ECHO OFF
FOR %%f IN (*.txt.deploy) DO RENAME "%%f" "%%~nf"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With