EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Windows rename

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Electronics Design - Windows rename

Goto page 1, 2, 3 ... 17, 18, 19  Next

John Larkin
Guest

Tue Aug 23, 2016 2:01 am   



I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


--

John Larkin Highland Technology, Inc
picosecond timing precision measurement

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

DemonicTubes
Guest

Tue Aug 23, 2016 2:01 am   



On Monday, August 22, 2016 at 2:01:54 PM UTC-6, John Larkin wrote:
Quote:
I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


--

John Larkin Highland Technology, Inc
picosecond timing precision measurement

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com


Maybe something like this:
http://www.bulkrenameutility.co.uk/Download.php

Klaus Kragelund
Guest

Tue Aug 23, 2016 2:01 am   



Total commander can do multi rename tool. It's great, for all sort of other stuff also

Cheers

Klaus

Klaus Kragelund
Guest

Tue Aug 23, 2016 2:01 am   



Sorry for the poor english...

"can do" = "has a"

George Herold
Guest

Tue Aug 23, 2016 2:01 am   



On Monday, August 22, 2016 at 4:01:54 PM UTC-4, John Larkin wrote:
Quote:
I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.
So at the cmd line can you type in "help ren".. or "help"?


I get a list of stuff.

George H.

Quote:


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


--

John Larkin Highland Technology, Inc
picosecond timing precision measurement

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com


Rob
Guest

Tue Aug 23, 2016 2:18 am   



John Larkin <jjlarkin_at_highlandtechnology.com> wrote:
Quote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


Use a good editor to create a batchfile that does what you want.

E.g. in vi:
!!ls
%s/99D\(.*\)/REN & Z\1/
:w renam.bat
:q

then run renam.bat

Unfortunately most editors in Windows will have more trouble doing
that, but you get the idea.

JW
Guest

Tue Aug 23, 2016 2:44 am   



On Mon, 22 Aug 2016 13:01:46 -0700 John Larkin
<jjlarkin_at_highlandtechnology.com> wrote in Message id:
<nslmrblvn03jijc84vrt3aiff2bjnmlgsa_at_4ax.com>:

Quote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


Free!
http://www.bulkrenameutility.co.uk/Main_Intro.php
https://www.advancedrenamer.com/

rickman
Guest

Tue Aug 23, 2016 5:22 am   



On 8/22/2016 4:18 PM, Rob wrote:
Quote:
John Larkin <jjlarkin_at_highlandtechnology.com> wrote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.

Use a good editor to create a batchfile that does what you want.

E.g. in vi:
!!ls
%s/99D\(.*\)/REN & Z\1/
:w renam.bat
:q

then run renam.bat

Unfortunately most editors in Windows will have more trouble doing
that, but you get the idea.


Recently I needed to do something similar. Seems the wildcarding in the
Windows command window is pretty lame. I had to generate a batch file
with separate lines for each file to be renamed. Codewright didn't have
any trouble with doing the name text replacement.

Still, I'd like to get something that is still live, Codewright has been
bought and sold so many times it's a lame duck. I think you can still
buy it for $350 or so, but there is ZERO support.

--

Rick C

Don Y
Guest

Tue Aug 23, 2016 6:11 am   



On 8/22/2016 1:01 PM, John Larkin wrote:
Quote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.

I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.

Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


Write a powerbasic program to do it.

John Larkin
Guest

Tue Aug 23, 2016 6:37 am   



On Mon, 22 Aug 2016 17:11:06 -0700, Don Y
<blockedofcourse_at_foo.invalid> wrote:

Quote:
On 8/22/2016 1:01 PM, John Larkin wrote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.

I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.

Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.

Write a powerbasic program to do it.


I could, but pragmatically, I'll probably just do them by hand.


--

John Larkin Highland Technology, Inc
picosecond timing precision measurement

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

Martin Riddle
Guest

Tue Aug 23, 2016 6:40 am   



On Mon, 22 Aug 2016 13:01:46 -0700, John Larkin
<jjlarkin_at_highlandtechnology.com> wrote:

Quote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.


Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.


Ren dir1 dir2

<http://www.windows-commandline.com/rename-directory-from-command-line/>

Maybe the wild cards mess it up.

Cheers

Don Y
Guest

Tue Aug 23, 2016 6:50 am   



On 8/22/2016 5:37 PM, John Larkin wrote:
Quote:
On Mon, 22 Aug 2016 17:11:06 -0700, Don Y
blockedofcourse_at_foo.invalid> wrote:

On 8/22/2016 1:01 PM, John Larkin wrote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.

I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.

Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.

Write a powerbasic program to do it.

I could, but pragmatically, I'll probably just do them by hand.


In *BSD's shell, it would be something like:

for name in *
do
if [ -d ${name} ]
then
newname=Z${name%99D}
mv ${name} ${newname}
fi
done

The embedded conditional only required to limit the
rename operation to directories (in case you also have
files in the same containing directory)

[*lots* of other ways to do it as well]

Don Y
Guest

Tue Aug 23, 2016 6:51 am   



On 8/22/2016 5:50 PM, Don Y wrote:
Quote:
On 8/22/2016 5:37 PM, John Larkin wrote:
On Mon, 22 Aug 2016 17:11:06 -0700, Don Y
blockedofcourse_at_foo.invalid> wrote:

On 8/22/2016 1:01 PM, John Larkin wrote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.

I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.

Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.

Write a powerbasic program to do it.

I could, but pragmatically, I'll probably just do them by hand.

In *BSD's shell, it would be something like:

for name in *
do
if [ -d ${name} ]
then
newname=Z${name%99D}


s.b. "name#99D"

Quote:
mv ${name} ${newname}
fi
done

The embedded conditional only required to limit the
rename operation to directories (in case you also have
files in the same containing directory)

[*lots* of other ways to do it as well]


rickman
Guest

Tue Aug 23, 2016 7:08 am   



On 8/22/2016 7:32 PM, George Herold wrote:
Quote:
On Monday, August 22, 2016 at 4:01:54 PM UTC-4, John Larkin wrote:
I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.


I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.
So at the cmd line can you type in "help ren".. or "help"?

I get a list of stuff.


When I was trying to do this the other day I found many web pages
explaining how REN could not do this. It can substitute letters based
on wildcards, but can't wholesale remove sections of the names. Best to
use an editor to edit a file list into a set of individual REN commands.

Others seem to have found tools that let them do what they want.

--

Rick C

rickman
Guest

Tue Aug 23, 2016 7:11 am   



On 8/22/2016 8:51 PM, Don Y wrote:
Quote:
On 8/22/2016 5:50 PM, Don Y wrote:
On 8/22/2016 5:37 PM, John Larkin wrote:
On Mon, 22 Aug 2016 17:11:06 -0700, Don Y
blockedofcourse_at_foo.invalid> wrote:

On 8/22/2016 1:01 PM, John Larkin wrote:


I have a folder with many subdirectories of the form

99D100
99D102
etc

and I want to rename them all as

Z100
Z102
etc.

I've tried variations of the command-line REN command. It renames
files, with wild cards, but I can't make it rename directories.

Any suggestions?

There are around 100 to rename, so I guess I could do them one at a
time.

Write a powerbasic program to do it.

I could, but pragmatically, I'll probably just do them by hand.

In *BSD's shell, it would be something like:

for name in *
do
if [ -d ${name} ]
then
newname=Z${name%99D}

s.b. "name#99D"

mv ${name} ${newname}
fi
done

The embedded conditional only required to limit the
rename operation to directories (in case you also have
files in the same containing directory)

[*lots* of other ways to do it as well]


What exactly is "newname=Z${name#99D}" doing, or more importantly, how
does it work? I realize it is building a new name for the file with a Z
added in place of the 99D. What is the syntax?

--

Rick C

Goto page 1, 2, 3 ... 17, 18, 19  Next

elektroda.net NewsGroups Forum Index - Electronics Design - Windows rename

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map