Click here to Skip to main content
Click here to Skip to main content

Visual Studio Project Renamer

By , 4 Sep 2001
 

Sample Image - vsrename.jpg

Introduction

This is a utility that renames Visual Studio projects.

Usage:

vsrename <oldname> <newname> <dir>

Where:

oldname : The old name of your project (typically the xxx from xxx.dsw)
newname : The new name for your project
dir : The directory tree that holds the project.

This program will replace all occurences of oldname to newname in all files and rename all filenames that have the old name in it. It will walk subdirectories.

Use with care and on your own risk! Make backups before you use this program. Do a 'rebuild all' on your renamed project.

History

5.Sep.2001 v0.5

  • Source code released.

30.Jun.2001 v0.4

  • Better handling of binary files. They should be alright after renaming the project.

15.Jun.2001 v0.3

  • Better renaming of projects with the same name in it, so you can rename a project from 'myproject' to 'supermyproject'. It should go ok.

14.Jun.2001 v0.2

  • Added renaming of main project directory

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Niek Albers
Web Developer
Netherlands Netherlands
Member
Niek is the founder and programmer of DaanSystems.com and is working on many projects all the time. He makes a living by doing contractwork for others.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralRe: I try in vain to run this utility, need some help! PinsussAnonymous13 Sep '02 - 5:34 
GeneralSource code or GUI PinmemberArnaud Brejeon14 Jun '01 - 15:33 
Hi,
 
very good application. We always use the same framework application in my company to start new projects so it will be extremely useful for us. Thank you very much.
On small problem : I think using the command line is a pity.
Can you make a windows dialog box application, or put the source code so that someone else (me for example) can do it?
 
Regards,
Arnaud
GeneralRe: Source code or GUI PinmemberSimon Capewell14 Jun '01 - 22:36 
GeneralRe: Source code or GUI PinmemberArnaud Brejeon14 Jun '01 - 22:48 
GeneralRe: Source code or GUI PinmemberSimon Capewell14 Jun '01 - 22:52 
GeneralRe: Source code or GUI PinmemberGero Gerber31 Jul '01 - 0:02 
GeneralRe: Source code or GUI PinmemberArnaud Brejeon31 Jul '01 - 0:10 
Exactly what I needed!Smile | :)
Thank you very much.
Arnaud

GeneralRe: Source code or GUI PinmemberGero Gerber31 Jul '01 - 0:19 
GeneralRe: Source code or GUI PinmemberArnaud Brejeon29 Aug '01 - 14:54 
GeneralNo source code and does not work PinmemberPatrick DellEra14 Jun '01 - 6:53 
The following is the partial resultant output from the command:
 
vsrename MyProject TheProject MyProject
 
Visual Studio Project Renamer - Use with care!
Make backups before you use this program.
Do a rebuild all on your renamed project.
By Niek Albers (nieka@daansystems.com)
 
Here we go:
Replacing in file: MyProject/MyProject.cpp
Renaming file: MyProject/MyProject.cpp -> TheProject/TheProject.cpp
renaming failed: No such file or directory
Replacing in file: MyProject/MyProject.dsp
Renaming file: MyProject/MyProject.dsp -> TheProject/TheProject.dsp
renaming failed: No such file or directory
Replacing in file: MyProject/MyProject.dsw
Renaming file: MyProject/MyProject.dsw -> TheProject/TheProject.dsw
renaming failed: No such file or directory
...

GeneralRe: No source code and does not work PinmemberAnonymous14 Jun '01 - 7:22 
GeneralRe: No source code and does not work PinmemberNiek Albers14 Jun '01 - 8:11 
Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 5 Sep 2001
Article Copyright 2001 by Niek Albers
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid