MapWindow 4 - Desktop Application : MapWindow Discussion Forum
Hi To inform you, I've just uploaded a new application to the download page, called LazyRenamer. It is perhaps a tool you don't know you need:)... I, however, find renaming shapefiles in the basic file manager way (or command prompt way) fairly time consuming (relatively speaking), so I deve
Efficient shapefile renamer
Posted by: andskog ()
Date: May 04, 2008 07:43AM

Hi
To inform you, I've just uploaded a new application to the download page, called LazyRenamer. It is perhaps a tool you don't know you need:)... I, however, find renaming shapefiles in the basic file manager way (or command prompt way) fairly time consuming (relatively speaking), so I developed this tool, which works like this: From e.g. Windows Explorer, drag-and-drop the file you want to rename onto the LazyRenamer, and enter the new name. Try it yourself, it's not as complicated as it sounds!!!

Cheers,
Anders

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: andskog ()
Date: May 08, 2008 09:35AM

Final version uploaded. The only change is in the ReadMe file (no restrictions), and the automatic creation of the ReadMe file when launching the app, is removed. (This previously overwrote any existing "readme.txt" file in the program folder.) 20 May: Also, the handling of filenames with "double extensions" (e.g. "Land.shp.xml", is improved.
Anders



Edited 1 time(s). Last edit at 05/20/2008 10:17AM by andskog.

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: adeegan ()
Date: June 03, 2009 10:47AM

Hi Anders,

I would love to get this LazyRenamer, but couldn't find it on the downloads page. Is it still available anywhere?

Angela

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: Alister ()
Date: May 31, 2010 05:47PM

Here it is. Unfortunately I've lost the original installer or zip or whatever it came in, so I don't have the ReadMe. I'm pretty sure it was distributed as freeware.
[synergine.wiki.zoho.com]
It would be great if the source was made available - I would find a "copy" checkbox useful, to copy the files instead of renaming them.

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: Alister ()
Date: August 06, 2010 08:08PM

Aha. I rescued the original package which does include the source.
[synergine.wiki.zoho.com]

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: pmeems ()
Date: August 11, 2010 01:21AM

I don't want to be a spoiler but renaming shapefiles in Win7 is also very easy.

By default if you want to rename a file the extension is not selected. If you select all the files that make up a shapefile and hit F2 the extension is still not selected. If you type another name Windows is now intelligent enough to rename all files at once, leaving the extensions in tact.

But thanks for sharing your code ;)

--
Paul

--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group

Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.

---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS

Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl

*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: Alister ()
Date: August 16, 2010 06:13PM

Thanks, I didn't realise you could do that. So MS actually improved something at some stage :)

Unfortunately that doesn't work with multiple file extensions... like the files I most often use lazyrename for, which are from a proprietary CAD/modelling program.

It also doesn't work if you have e.g. shape_file_1.shp and shape_file_12.shp, and try to rename the former.

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: Alister ()
Date: August 16, 2010 06:16PM

When I say "multiple file extensions" I mean e.g. some_file.xml.dsn
(I made this one up because I can't remember the real example).

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: Alister ()
Date: March 20, 2011 03:43AM

Hi Anders,
I have made some updates to Lazyrenamer, particularly:

- fixed a bug which produced the error "files appears to be in use by another program" if the path of the containing directory included a .
- added a "copy" button

I don't have any immediate plans to do more work on it, but I'd like to upload the new version, and an svn source repository, so the code doesn't go to waste. Would you mind if I do this?

Would you like to put it under a particular license? Your original ReadMe simply disclaimed any liability for use of the program, and required that the ReadMe be included with it.
Sites like Sourceforge and Google Code typically require an OSI compatible license like the GPL.

Thanks,
Alister

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: andskog ()
Date: March 22, 2011 01:19PM

Hi there, Alister
Just go ahead and do whatever you want with it, given that you remove my name from the code. I have no knowledge of licensing and so forth, and the thought of a worst-case-scenario made me remove it from the download section in the first place.

Options: ReplyQuote
Re: Efficient shapefile renamer
Posted by: Alister ()
Date: March 27, 2011 01:02AM

OK, thanks.
The current version is up at google code, with your name removed.
I've also removed the copy of the original package that I linked to earlier in this thread.



Edited 1 time(s). Last edit at 03/27/2011 01:02AM by Alister.

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: