A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Batch Changing of a File Extension



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 2nd 17, 06:40 PM posted to alt.comp.os.windows-10
Ricardo Jimenez
external usenet poster
 
Posts: 70
Default Batch Changing of a File Extension

Using File Explorer, I highlighted a bunch of files with extension
..m4b in a directory. I then opened Windows PowerShell and typed the
command, "rename *.m4b *.mp4" next to the prompt showing the
directory. I got the following message: rename : the term 'rename' is
not recognized as the name of a cmdlet, function, script file, or
operable program. What the heck did I do wrong?
Ads
  #2  
Old March 2nd 17, 08:27 PM posted to alt.comp.os.windows-10
Peter Jason
external usenet poster
 
Posts: 2,310
Default Batch Changing of a File Extension

On Thu, 02 Mar 2017 13:40:42 -0500, Ricardo Jimenez
wrote:

Using File Explorer, I highlighted a bunch of files with extension
.m4b in a directory. I then opened Windows PowerShell and typed the
command, "rename *.m4b *.mp4" next to the prompt showing the
directory. I got the following message: rename : the term 'rename' is
not recognized as the name of a cmdlet, function, script file, or
operable program. What the heck did I do wrong?



This seems to be the standard utility for this sort of thing........
https://renamer.en.softonic.com/

  #4  
Old March 2nd 17, 09:30 PM posted to alt.comp.os.windows-10
Ricardo Jimenez
external usenet poster
 
Posts: 70
Default Batch Changing of a File Extension

On Fri, 3 Mar 2017 10:16:32 +1300, Dave Doe wrote:

In article ,
, Ricardo Jimenez says...

Using File Explorer, I highlighted a bunch of files with extension
.m4b in a directory. I then opened Windows PowerShell and typed the
command, "rename *.m4b *.mp4" next to the prompt showing the
directory. I got the following message: rename : the term 'rename' is
not recognized as the name of a cmdlet, function, script file, or
operable program. What the heck did I do wrong?


Just use 'ren'


Nope. Windows Power Shell doesn't recognize ren either.
  #8  
Old March 2nd 17, 10:50 PM posted to alt.comp.os.windows-10
Ricardo Jimenez
external usenet poster
 
Posts: 70
Default Batch Changing of a File Extension

On Fri, 3 Mar 2017 11:19:13 +1300, Dave Doe wrote:

In article ,
, Ricardo Jimenez says...

On Fri, 3 Mar 2017 10:16:32 +1300, Dave Doe wrote:

In article ,
, Ricardo Jimenez says...

Using File Explorer, I highlighted a bunch of files with extension
.m4b in a directory. I then opened Windows PowerShell and typed the
command, "rename *.m4b *.mp4" next to the prompt showing the
directory. I got the following message: rename : the term 'rename' is
not recognized as the name of a cmdlet, function, script file, or
operable program. What the heck did I do wrong?

Just use 'ren'


Nope. Windows Power Shell doesn't recognize ren either.


??? It bloody should...

https://technet.microsoft.com/en-us/.../ee176940.aspx

Are you missing some Powershell libs or somethin'???


I wish I knew. When I tried ren *.m4b *.mb4, I got the message,
ren: Cannot process argument because the value of argument "path" is
not valid. Change the value of the "path" argument and run the
operation again.

However ren *.m4b *mb4 works fine with the command prompt. Do they
want me to repeat the entire path before each of the two arguments
even though PowerShell's top row is PS Path ?
  #9  
Old March 3rd 17, 12:40 AM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Batch Changing of a File Extension

Ricardo Jimenez wrote:
On Fri, 3 Mar 2017 11:19:13 +1300, Dave Doe wrote:

In article ,
, Ricardo Jimenez says...
On Fri, 3 Mar 2017 10:16:32 +1300, Dave Doe wrote:

In article ,
, Ricardo Jimenez says...
Using File Explorer, I highlighted a bunch of files with extension
.m4b in a directory. I then opened Windows PowerShell and typed the
command, "rename *.m4b *.mp4" next to the prompt showing the
directory. I got the following message: rename : the term 'rename' is
not recognized as the name of a cmdlet, function, script file, or
operable program. What the heck did I do wrong?
Just use 'ren'
Nope. Windows Power Shell doesn't recognize ren either.

??? It bloody should...

https://technet.microsoft.com/en-us/.../ee176940.aspx

Are you missing some Powershell libs or somethin'???


I wish I knew. When I tried ren *.m4b *.mb4, I got the message,
ren: Cannot process argument because the value of argument "path" is
not valid. Change the value of the "path" argument and run the
operation again.

However ren *.m4b *mb4 works fine with the command prompt. Do they
want me to repeat the entire path before each of the two arguments
even though PowerShell's top row is PS Path ?


https://msdn.microsoft.com/en-us/pow...nt/rename-item

Accept wildcard characters: False --- Oh my.

This is the only command I could get to work. No amount
of double-quoting or single-quoting or mixing the two would work.

The "backtick" character can be used to escape the space in my "user name".
At first I thought the example, was a speck of dirt on my screen, but
no, it was a backtick character strategically placed.

rename-item -path C:\users\user` name\Downloads\test.m4b -newname test.mp4

So that executed successfully, and is... totally useless.

"He shoots... own goal!!!". Nice work Microsoft. How quaint.

I sure got to see lots of different error messages. My screen
is a sea of red ink.

I can see how this is a "direct replacement" for Command Prompt.

And you wonder why young people don't want to take up programming...

Paul
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 10:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.