I have an App.config file in my project that gets copied to NameOfExe.exe.config at build time. The users of my software will need to edit this file at times, but they may not be familiar with how .NET does things (or how computers do things in general). I think using a file name like that might confuse them, with the .exe.config extensi...
I have the branch master which tracks the remote branch origin/master.
I want to rename them to "master-old" both locally and remote. Is that possible? For other users who tracked origin/master (and who updated their local master branch always just via 'git pull'), what whould happen after I renamed the renamed the remote branch. Would ...
How do each of these vcs handle renames?
I have found a lot of contradicting information stating that git tracks loc's instead of files, renames would therfefore have no meaning for it.
...
I need some help in renaming some images in a directory located at /images/graphicsLib/.
All image names in /graphicsLib/ have naming convention that looks like this:
400-60947.jpg. We call the "400" part of the file the prefix and we call the "60957" part the suffix. The entire file name we call the sku.
So if you saw the contents o...
I am trying to rename a directory in c# to a name that is the same only with differing case.
For example:
f:\test to f:\TEST
I have tried this code:
var directory = new DirectoryInfo("f:\\test");
directory.MoveTo("f:\\TEST");
and I get a IOException - Source and destination path must be different. I have also tried Directory.Move()...
I have thousands of files that I need to rename with the following format.
2008:09:18:17:45:48-alfanumeric-alfanumeric.wav the first part is a date.
Ex. 2008:09:18:17:45:48-703-s.wav
A want to rename it to:
20080918.174548.703.s.wav
Basically to remove the ':' and to make a more human readable format and easier to split.
I know that...
Does SHFileOperation support to move and rename files at the same time?
I'v got a set of files :
c:\
f1.bmp f2.bmp f3.bmp f4.bmp
I want to move each to new folder, and rename them:
d:\
b1.bmp b2.bmp b3.bmp b4.bmp
Can I use SHFileOperation? and just do it once?
Many thanks!
...
Hi there
I'm using uploadify with asp and I want to change the file name to the current date+time when the file is complete.
Is there any way to do it?
this is my JS code:
$('#fileUploadJquery').uploadify({
'uploader' : 'Shared/ClientScripts/Uploadify/uploadify.swf',
'cancelImg' : 'Shared/ClientScripts/Uploadify/cancel.p...
I need to rename a lot of directories and their sub directories.
I have a csv file which contains the old directory names and the required new name.
1,blah,old_name1,new_name2,wibble
2,foo,old_name2,new_name2,bar
3,john,old_name3,new_name3,paul
4,george,old_name4,new_name4,ringo
Note that some of the directory names are
old_name1-m...
The question is related to the answer about renaming files recursively.
The code, changed to replace dashes, does not work with cases such as:
./Beginners Tools/Hello's -Trojans-/bif43243
./Linux/Nux Col - 1 Works (TEX & Pdf) - T'eouhsoe & More (33323 - 34432)
./Git/peepcode-git-mov/c6_branch_merge.mov
./haskell/OS 2007 - T aoue
./B Si...
My purpose is to rename one file. What I'm doing is: I'm searching a particular string in a text file. Among So many files and if that particular text is found then I want rename that text file with a given string.
Here is what I have tried:
String opcode="OPCODES"; // String that I want to search.
File file = new File("D:\\C...
I've read in various FAQs that git doesn't explicitly track renames/moves, preferring to look for identical (or in some situations similar?) files. That's great, but will it cope with this situation: a friend's remote repository has a new feature (i18n) involving some new files at debian/po/*.po. I have my own fork of this project, and w...
is it possible somehow to use the NOW() function or something similar in MYSQL rename table()?
the reason i need this is because instead of dropping old tables straight away we prefer to first rename then to old_ date-table-was-taken-ouf-of-use_ table_name so when we actualy delete it we know how long the table has been 'unavailable'
...
I have a directory that looks like this:
pages/
folder1/
folder1.filename1.txt
folder1.filename2.txt
folder2/
folder2.filename4.txt
folder2.filename5.txt
folder3/
filename6.txt
I want it to look like this:
pages/
folder1/
filename1.txt
filename2.txt
folder2/
filename3.txt
filename4.txt
folder3/
filename5.txt...
I want add the date next to a filename ("somefile.txt"). For example: somefile_25-11-2009.txt or somefile_25Nov2009.txt or anything to that effect
Maybe a script will do or some command in the terminal window. I'm using Linux(Ubuntu).
Thanks in advance.
oh i almost forgot to add that the script or command should update the filename to...
Suppose I have an AFTER ALTER trigger on my Oracle database and I rename some database object (ALTER ... RENAME TO ...). Within the trigger, how do I determine the new name of the database object? It seems that the ORA_DICT_OBJ_OWNER, ORA_DICT_OBJ_NAME and ORA_DICT_OBJ_TYPE functions all return the old values of the database object.
For...
Given: All the uploaded pdf files on server are prefixed with timestamps. Later user can download these files again. These (ugly)filenames would never change again on server.
Question: When I give the option to download PDF file, name of the file looks ugly and lengthy. How can I change this name to something sensible, so that when user...
I have a lot of files I'm trying to rename, I tried to make a regular expression to match them, but even that I got stuck on the files are named like:
File Name 01
File Name 100
File Name 02
File Name 03
etc, I would like to add a "0" (zero), behind any of file that are less than 100, like this:
File Name 001
...
Our application uses an Oracle 10g database where several primary keys are exposed to the end user. Productcodes and such. Unfortunately it's to late to do anything with this, as there are tons of reports and custom scripts out there that we do not have control over. We can't redefine the primary keys or mess up the database structure.
...
I'm trying to format the output of ls -la to only contain files modified in December and output them nicely, this is what they currently look like:
ls -la | awk {'print $6,$7,$8,$9,$10'} | grep "Dec" | sort -r | head -5
Dec 4 20:15 folder/
Dec 4 19:51 ./
Dec 4 17:42 Folder\ John/
Dec 4 16:19 Homework\ MAT\ 08/
Dec 4 16:05 Folder\ Smith...