Rename the cmd mask catalogue



  • We need to change the name of the bat file from the bat file. test-123 Let's say, test The mask. Me -123 unknown.

    ren test* test
    

    Not working.



  • Team ren prevents the use of sub-standard symbols. The target can be solved by for:

    for /d %%d in (test*.*) do (
        ren %%d test
    )
    

    Consider that this code will find and try to rename it. test All catalogues whose name begins with test (and, of which, coincides). If there's a lot of catalogues found, it's only the first.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2