This is for Windows:
The below example is for removing space from all PDF files inside a particular folder.
- Open a Command Prompt or PowerShell
- Go to the folder with the cd command (eg.: cd “paht of your folder”).
- Then input the below :
# get-childitem *.pdf | foreach {rename-item $_ $_.name.replace(" ","")}