how can i add extension to multiple extensionless files on windows 10 . Powershell command doesn't work

Anonymous
2019-11-03T15:12:54+00:00

how can add extension to multiple file on windows 10 using windows powershell

hi, how can i add extensions to multiple extensionless files on windows 10

///

when i right click on folder  holding shift key then choose powershell because there is no command prompt

and enter this command ren *. *.jpeg it doesn't work even ren * *.jpeg didn't work also

i tried using cmd prompt by from start menu then locating file using cd then file location then typed the first command it worked so what is the right command for windows power shell and if there are any other methods it would be great

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

16 answers

Sort by: Most helpful
  1. Anonymous
    2019-11-03T21:39:12+00:00

    there is a command 

    Get-ChildItem *.| Rename-Item -newname { $_.name -replace '.','.' }

    but didn't work for naming nameless  files

    it worked fine for change extensions for those of extensions

    0 comments No comments
  2. Anonymous
    2019-11-03T22:14:44+00:00

    Try:

    Get-ChildItem * | Rename-Item -newname { $_.name -replace '.','.' }

    0 comments No comments
  3. Anonymous
    2019-11-03T22:55:16+00:00

    ren * *.jpeg it only works if the files has already dedicated extensions 

    Not true!

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-11-04T00:02:04+00:00

    ren * *.jpeg it only works if the files has already dedicated extensions 

    Not true!

    we are talking about windows powershell not command prompt

    4 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2019-11-04T00:06:35+00:00

    i tried that already not working tried to remove the point the inserting space not working i is a different code i think i don; know why microsoft is using bad complicated codes

    0 comments No comments