(OT) changing file names in a folder

Just got back from vacation but did not see a reply to your request so I'll take a stab....
When I have had to do bulk renames on files I have always resorted to either the DOS command window or a batch file with DOS commands. You can use the RENAME command with a wild card (*) but in this case with the space you have to put the current file name in double quotes. Getting the right combo of wild carding and quotes might be tricky. If the file names have some sort of consistant pattern (like the part before or after the space is always the same) then it would be really easy:
RENAME "Prefix *.*" Prefix-*.* ---- where "prefix" is the leading characters before the space
-Todd C.


-----Original Message-----
From: Tyira Eric [mailto:eric.tyira@...]
Sent: Friday, September 03, 2004 6:52 AM
To: Vantage User Group (E-mail)
Subject: [Vantage] (OT) changing file names in a folder


Does anyone know how to mass change file names in a windows folder? For instance if I have 100 files with a space in them and I want to remove the space and replace it with a hyphen, how do I do this quickly?

I don't really want to write any code. Is there a windows feature or program available that someone else has already done?

Any help would be appreciated.

Thanks.

Eric L. Tyira
Tamglass Tempering Systems

P: (856) 786-1200
F: (856) 786-7606

eric.tyira@...



[Non-text portions of this message have been removed]



Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links



Yahoo! Groups Sponsor

ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=1290vv4q6/M=295196.4901138.6071305.3001176/D=groups/S=1705007183:HM/EXP=1094299009/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=466152071>


_____

Yahoo! Groups Links


* To visit your group on the web, go to:
http://groups.yahoo.com/group/vantage/


* To unsubscribe from this group, send an email to:
vantage-unsubscribe@yahoogroups.com <mailto:vantage-unsubscribe@yahoogroups.com?subject=Unsubscribe>


* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]
Does anyone know how to mass change file names in a windows folder? For instance if I have 100 files with a space in them and I want to remove the space and replace it with a hyphen, how do I do this quickly?

I don't really want to write any code. Is there a windows feature or program available that someone else has already done?

Any help would be appreciated.

Thanks.

Eric L. Tyira
Tamglass Tempering Systems

P: (856) 786-1200
F: (856) 786-7606

eric.tyira@...



[Non-text portions of this message have been removed]
Remember DOS
move to the directory CD\xxx
the command was RENAME

it might choke on the space
DOS never liked spaces. I still do not put them in file names.

______________________________________________________________________________
Original Message:

Does anyone know how to mass change file names in a windows folder? For instance if I have 100 files with a space in them and I want to remove the space and replace it with a hyphen, how do I do this quickly?

I don't really want to write any code. Is there a windows feature or program available that someone else has already done?

Any help would be appreciated.

Thanks.

Eric L. Tyira
Tamglass Tempering Systems
_________________________________________________
Babette Welch
IT Director
Argonics, Inc
1110 Wright Street
Marquette MI 49855
906.226.9747 ext 235
906.228.0951
Not sure about doing it from a command line, but it would only be 5 lines of
code in visual basic 6 to do what you want to do.

-----Original Message-----
From: Babette Welch [mailto:bwelch@...]
Sent: Friday, September 03, 2004 2:28 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: (OT) changing file names in a folder



Remember DOS
move to the directory CD\xxx
the command was RENAME

it might choke on the space
DOS never liked spaces. I still do not put them in file names.

____________________________________________________________________________
__
Original Message:

Does anyone know how to mass change file names in a windows folder? For
instance if I have 100 files with a space in them and I want to remove the
space and replace it with a hyphen, how do I do this quickly?

I don't really want to write any code. Is there a windows feature or
program available that someone else has already done?

Any help would be appreciated.

Thanks.

Eric L. Tyira
Tamglass Tempering Systems
_________________________________________________
Babette Welch
IT Director
Argonics, Inc
1110 Wright Street
Marquette MI 49855
906.226.9747 ext 235
906.228.0951




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links
make that 8 lines of code if you count the dim statements. Here is the
code:

Dim oldname As String
Dim newname As String
Dim x As Integer

For x = 0 To File1.ListCount - 1
oldname = File1.Path + "\" + File1.List(x)
newname = File1.Path + "\" + Replace(File1.List(x), " ", "-")
Name oldname As newname
Next x

all you need is a FileListBox control added on the form.

-----Original Message-----
From: Podlin, Michael [mailto:michael.podlin@...]
Sent: Friday, September 03, 2004 3:07 PM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] RE: (OT) changing file names in a folder


Not sure about doing it from a command line, but it would only be 5 lines of
code in visual basic 6 to do what you want to do.

-----Original Message-----
From: Babette Welch [mailto:bwelch@...]
Sent: Friday, September 03, 2004 2:28 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: (OT) changing file names in a folder



Remember DOS
move to the directory CD\xxx
the command was RENAME

it might choke on the space
DOS never liked spaces. I still do not put them in file names.

____________________________________________________________________________
__
Original Message:

Does anyone know how to mass change file names in a windows folder? For
instance if I have 100 files with a space in them and I want to remove the
space and replace it with a hyphen, how do I do this quickly?

I don't really want to write any code. Is there a windows feature or
program available that someone else has already done?

Any help would be appreciated.

Thanks.

Eric L. Tyira
Tamglass Tempering Systems
_________________________________________________
Babette Welch
IT Director
Argonics, Inc
1110 Wright Street
Marquette MI 49855
906.226.9747 ext 235
906.228.0951




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links









Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links