rename

Can I use JDT to rename a working copy of a Java source file?

I'm using Eclipse JDT to build a Java refactoring platform, for exploring different refactorings in memory before choosing one and saving it. I can create working copies of the source files and edit them (for example to rename a type, using ASTRewrite), and I also want to rename one or more of the working copies. I'd hoped that the renam...

Visual Studio 6 : How to change the workspace file name?

When using VC++6 sp6, how can I change the workspace file name? The workspace directory contains three main files with the following file extensions. When I tried changing the filenames while preserving the respective file extension, I get a whole bunch of errors and warnings when I tried to recompile the projects contained in that wor...

regex on an array to rename keys

Hay all, i have an array Array ([near_prescription] => Array ( [go_to] => inter_selection [distance_right_sph] => 0.00 [balance_right] => [distance_right_cyl] => 0.00 [distance_right_axis] => [distance_left_sph] => 0.00 [balance_left] => [distance_left_cyl] => 0.00 [distance_left_axis] => ...

Oracle 11g rename. Guaranteed to be atomic?

Hi, I have some (5) rename statements in a plsql script drop table new; rename old to new; "old" tables hold very valuable information. As I see it, if the rename command is guaranteed to be atomic, then I´d have one problem solved. Is it atomic? If not, is there a way to do a "safe" rename ? Thanks in advance ...

Why does ReSharper's "Rename" only sometimes display a prompt?

When I rename a variable using ReSharper 4.5 (VS2008), the rename is performed inline (I specify the new variable name in the editor itself) or via a prompt (a popup window where I specify the new variable name). I'm hoping someone can tell me what determines which approach is used? ...

How to rename files in a for loop in Perl

Hi, I am running a Perl script and try to accomplish renaming files as below.. I have a list of *.ru.jp files in a folder with other non related files. I would like to rename with a number which I have got as a counter variable. In Bash,I would do as ... for i in $(ls *.ru.jp); do x=${i%%.*}; mv $i "$x"t"$counter".ru.jp ;done E.g...

Unix Bash rename files using a regex.

Hi everyone! I would like to rename all files from a folder using a regex(add a name to the end of name) and move to another folder. It my opinion, it should be looking like this: mv -v ./images/*.png ./test/*test.png, but it is not working. Can anyone suggest me a solution? Thanks in advance! ...

Xcode renames files when compiling?

Every time I compile my iPhone project, Xcode renames my Default.png to default.png The file name in my project is Default.png, so it's correct in my project. It gets renamed somewhere in the compile process; is there any way to stop Xcode from renaming this file? It's the only file that gets renamed for some reason, and my app wont di...

Rename image file name in matlab

Hi I Load 10,000 image files from internet site and i save it in the folder to use it in my project (image retrieval system ), now i need to rename image file in a sequential name like (image1,image2,image3,....image10000) , any one can help me... I would like to inform you that I used matlab in my work thank ...

Any way to rename a deployed ClickOnce app?

My company has a ClickOnce that has been in use with our customers for about a year now. We're going through a re-branding, and want to change the name of the application. However, just changing all of the normal name options in Visual Studio, and then building a new deploy obviously changes the manifests that the existing app is lookin...

Renaming a file in Java without using renameTo()

Disregarding my last post, I've found the source of the problem. I'm using a.renameTo(b) when b doesn't exist. The reason it doesn't exist is because there is a symbolic link so if b is "/usr/name/folder/file", then b really is "/mnt/MountTest" because the symlink is to that directory. So the question is, is there an alternative way...

using header() to rewrite filename in URL for dynamic pdf

I have a php script that generates a pdf report. When we go to save the pdf document, the filename that Acrobat suggests is report_pdf, since the php script is named report_pdf.php. I would like to dynamically name the pdf file, so I don't have to type the appropriate name for the report each time that I save it. Asking on a news group...

Renaming a directory in C#

Ok, so admittedly I'm pretty new to C#, but I couldn't find a DirectoryInfo.Rename(To) or FileInfo.Rename(To) method anywhere. It pissed me off, so I wrote my own, and I'm posting it here for anybody to use if they need it, because let's face it : the MoveTo methods are overkill and will always require extra logic if you just want to re...

bash Linux - Massive folder rename

On our Linux file server (RedHat Enterprise) we have some folders that we need to rename that have client work in them. The old folder format (ones that need to be changed) was clientcode_jobnumberjobname. The new format is clientcode_jobnumber_jobname. We basically need to change the old folder names by adding the extra underscore to th...

How to change the name of the app on the iPhone?

I did this before, but can't remember it now. I want to change what appears under the icon of my app on the home screen. Where in Xcode do I do this? ...

rename many files automatic one time - ddmmyyyy.file to yyyymmdd.file

Hello I have 1500 files that are named with an incorrectly dateformat. I would like to rename them. Are there a tool that can do that? Otherwise a piece of php code. File names are: ddmmyyyy.xls (e.g. 15012010 for 15.th Jan 2010) and I would like: yyyymmdd.xls (e.g. 20100115.xls) Any clue on how this can be done for 1500 files in one...

Force rename a file in Java

Can I use any utility to do a force rename of a file from Java.io? I understand that Java 7 has these features, but I can’t use it... If I do a File tempFile = File.createTempFile(); tempFile.renameTo(newfile) and if newfile exists then its fails. How do I do a force rename? ...

SVN Rename directory, maintain file history

Hi, I originally created my svn repository without the suggested trunk, branches, tags structure. It looks something like this. /src /src/file.txt /src/file2.txt I used TortoiseSVN to rename the /src directory to /projectName/trunk/src; however, now I can't easily view the history of a file within the directory structure using Show ...

Renaming a file on a remote file server in C# / Python

I need to rename a whole heap of files on a Windows file server - I don't mind what language I use really as long it's quick and easy! I know it's basic but just to clarify - in pseudo-code... server = login (fileserver, creds) foreach (file in server.navigateToDir(dir)) rename(file) I know how to do this in Python/C# if I was a...

How to quickly rename a bunch of files in the folder

I have a bunch of files that are named 'something_12345.doc' (any 5-digit number, not necessarily 12345). I need to rename them all to just 'something.doc'. This is a Unix filesystem, and I suspect there's a way to do this with just one command... Can any Unix regular expressions guru help? Thanks! ...