rename

Can I rename a dataset in the VS 2005 properties window and have this refactor through my code?

Hi, I tried the above but when I attempted to rebuild I received errors as the compiler couldn't find the dataset by it's old name. I know it might be lazy, but I'm used to being able to rename an item in it's properties window and have the refactoring happen silently behind the scenes for me. Is there a way I can do the same thing w...

recursive renaming file names + folder names with a batch file

I like to create a batch file (winxp cmd) that recursively goes through a chose folder and sub folders and renames there files+folders with the following rules: from all file + folder names, all uppercase+lowercase "V" and "W" letters need to be replaced with letters "Y" and "Z". e.g. 11V0W must become 11Y0Z. I believe its possible...

How can I batch rename files?

Hello, I'm looking for a script (Perl, Python or batch would be fine) that will go through a designated file tree and renames all the child files. For example, Folder1>File1.anytype becomes Folder1>Folder1File1.anytype. Thanks ...

Renaming LINQ 2 SQL Entity Properties Through Partial Classes

Hi, Can I use partial classes to create properties that points to an association property generated by the L2S designer. Also, will I be able to use the new property in queries? How can I achieve this? ...

Stop Linq To Sql from Renaming properties of the DataContext after I rename them

Hi, I got an entity called Proveedor on my Data Context. A property called Proveedors is generated for the Data Context to represent a collection of Proveedor. I rename it to Proveedores which is the correct spelling in spanish. But as soon as i do anything on the model (not related to the Proveedor Entity) and rebuild it renames it bac...

Question about c# optimizer.

If I write: SomeType simpleName = classWithLongName.otherLongName; And then use "simpleName" instead of "classWithLongName.otherLongName", will this change the program in any way (for instance performance wise)? What does the compiler do with this? Does it copy+paste "classWithLongName.otherLongName", everywhere I use "simpleName". ...

disable "Rename" menuitem in eclipse

I have defined my own project nature . I need to disable right-click->"Rename..." and Refactor->"Rename..." menuitems for projects which are associated with "MyProjectNature". Any clues as to how it can be achieved in eclipse plugins ? ...

How can I translate filenames during a Subversion checkout?

Can Subversion support translating filename path components during checkout/export and commit? For example, can I set up SVN (client side or server side, doesn't matter) to automatically substitute and ':' characters in path names, replacing them with the character '+', instead? Basically, Windows can't tolerate certain characters in f...

Command to truncate all filenames at 255 characters

An NTFS directory is open in a bash shell. what command will recursively truncate all filenames in a directory to the 255 character limit required for ext3? ...

Renaming a File/Folder inside a Zip File in Java?

I have a zip file containing a folder structure like main-folder/ subFolder1/ subFolder2/ subFolder3/ file3.1 file3.2 I would like to rename folder main-folder to let's say versionXY inside that very zip file using Java. Is there a simpler way than extracting the whole zip file and recreating a new one using the new folder names...

can we rename our Rails folders and not have any side effects?

when starting Ruby on Rails programming, I will use rails first rails second and try out things in these "first" and "second" projects but as they get more mature i want to check them into SVN and develop further, so can i rename them into "superapp" or "web30" and check into SVN and develop further without any side effects? I...

rename not supporting multi-byte characters

If I write: rename('php109.tmp','test.jpg'); then it's fine and working. but if I change it into: rename('php109.tmp','中文.jpg'); it'll report "No such file or directory...". But the multi-byte characters can be written into database then read out fine, why it fails when towards rename ? ...

Renaming a set of files to 001, 002, ... on Linux

I originally had a set of images of the form image_001.jpg, image_002.jpg, ... I went through them and removed several. Now I'd like to rename the leftover files back to image_001.jpg, image_002.jpg, ... Is there a Linux command that will do this neatly? I'm familiar with rename but can't see anything to order file names like this. I'm...

Visual studio refactoring - move class to assembly

Hi, I'm looking for the simplest (and most complete) mechanism to move a class from one to another assembly with reference (dependency) fixing capability.I know some manual ways to do that like : - use built-in move rename, then cutpaste, multiple save ... - use resharper rename namespace, cutpaste , the same as above but with the ...

Unable to install Linux's rename to Mac

I read the tutorial which advises me to run at util-linux package ./configure I get configuring util-linux-2.12q You don't have <scsi/scsi.h> You don't have <linux/blkpg.h> You don't have <linux/kd.h> You have <locale.h>You have <langinfo.h> You have <sys/user.h> You have <uuid/uuid.h> You have <rpcsvc/nfs_prot.h> You don't have ...

Rails rename_column migration issue

Hi there, I am trying to run a migration on an existing database to change the column name on a table. When I run the migration, I get an error stating that Blob/Text fields cannot have a default value. The column in question is a text column, with a non-null attribute, but no default value. The migration that Rails attempts is: ALTE...

Find and rename files with no extention?

So, I've got a bunch of files with no extension. I want to write a windows batch script that will: Find files with no extension (in a specified folder) Add .bla to the end of the file name I'm such a windows batch script noob I don't even know where to start. Suggestions? ...

Rename a tag in git?

Today I was looking through the logs for a project and realized that I fat fingered a tag name some time ago. Is there some way to rename the tag? Google hasn't turned up anything useful. I realize I could check out the tagged version and make a new tag, I even tried that. But that seems to create a tag object that isn't quite right. Fo...

Using Perl, how can I rename files in all subdirectories of a drive?

How can I rename all files on a drive with .wma and .wmv extensions to .txt extension using Perl regardless how deep they are in the directory structure? ...

Xcode - renaming project causes problem

I'm currently working on an iphone application. I started working on this from a project template that I found on the internet. Now I want to rename this project. I've successfully renamed the actual project file, folder and the executables and some other stuff, but there is one weird problem. If I try running the application on my iphon...