Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 01-04-2008, 09:28 AM   #1 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 4
OS: WINDOWS XP


Post Renaming files with . dot (Moved from Windows XP)

I have some files as shown below.
AAAAAAAB.AOX
AAAAAAAB.AOY
AAAAAAAB.AOZ

I need to rename it by DOS/WINDOWS batch script as given below

AAAAAAABAOX.ICA
AAAAAAABAOY.ICA
AAAAAAABAOZ.ICA

Please suggest how to write the batch.
There are almost millions of files to rename in this way.

Thanks in advance
Habool is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-04-2008, 09:38 AM   #2 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 12
OS: Win XP SP2

My System

Re: Renaming files with . dot

you wanna rename them in DOS?

batch cmd: Ren [filename] [new filname]

But you could enter "help" at command prompt
matthiasvegh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-04-2008, 11:07 AM   #3 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 4
OS: WINDOWS XP


Re: Renaming files with . dot

Thanks for your reply.
I am using Windows system. Some windows batch will help.
With simple rename command I could not remove .(dot) from the file name. I need to remove the 9th character add the extention .ICA
Please see the question once again.

Thanks in advance
Habool is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-07-2008, 06:46 AM   #4 (permalink)
Manager, TSF Articles
 
JohnthePilot's Avatar
 
Join Date: Mar 2006
Location: Cheltenham, near Wales.
Posts: 30,921
OS: XP Home SP3, PCLinux, Vista Home Premium SP1

My System

Blog Entries: 1
Send a message via MSN to JohnthePilot
Re: Renaming files with . dot (Moved from Windows XP)

I've moved your thread into Programming where you may get more help.
__________________


If you feel that TSF has helped you please make a donationand help to keep the forum free
Cenedl heb iaith, cenedl heb galon

JohnthePilot is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-07-2008, 07:36 AM   #5 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 12
OS: Win XP SP2

My System

Re: Renaming files with . dot (Moved from Windows XP)

can you see the extension? If you want to rename it in windows, and also be able to edit the extension, simply enable viewing of extensions, in options.

Tools\Folder Options
Select the "View" tab.
Scroll down to "hide file extensions for known file types"
Uncheck it.

You can now change the extension, by simply renaming (F2) and entering name as: name.extension
matthiasvegh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-07-2008, 09:27 AM   #6 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 4
OS: WINDOWS XP


Re: Renaming files with . dot (Moved from Windows XP)

I have milions of files. So can't do....:)
Habool is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-07-2008, 01:01 PM   #7 (permalink)
Manager, TSF Articles
 
JohnthePilot's Avatar
 
Join Date: Mar 2006
Location: Cheltenham, near Wales.
Posts: 30,921
OS: XP Home SP3, PCLinux, Vista Home Premium SP1

My System

Blog Entries: 1
Send a message via MSN to JohnthePilot
Re: Renaming files with . dot (Moved from Windows XP)

Habool has made it clear that he doesn't just want to change the extension, but wants to make the existing extension part of the filename by removing the dot and then adding the .ICA extension.
__________________


If you feel that TSF has helped you please make a donationand help to keep the forum free
Cenedl heb iaith, cenedl heb galon

JohnthePilot is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-06-2009, 10:17 AM   #8 (permalink)
Registered User
 
Join Date: Feb 2009
Posts: 3
OS: Vista


Re: Renaming files with . dot using biterscripting

I use biterscripting to do things like this - especially if you have millions of files. I wrote a quick script for you. Save the following script in a file called FileRename.txt, start biterscripting interactive (for free download, http://www.biterscripting.com), then invoke the script as follows.

cd <your directory where these files are located>
script FileRename.txt

Also, if you do this repeatitively, you can call this script in a batch mode from DOS prompt, any other program, using a shortcut on the desktop, or using a scheduled task. The script will work on every version of windows.

Hope this helps. If you make this script better than my version, please do not forget to repost it for the benefit of others.

Patrick

# START OF SCRIPT

# Collect list of files. There may be variable number of files.
var str list
lf -n "AAAA*" > $list

# Process files one at a time
while ($list <> "")
do
# Get the next file
var str file
lex "1" $list > $file

# Create new file name
var str new_name

# Remove the dot from file name, but only the last dot.
sal -p "^.^l" "" $file > $new_name # sal=string alterer, -p preserve $file - we will need it for the rename command.

# Add .ICA
set $new_name = $new_name+".ICA"

# Rename file
script SS_SlashBack.txt ospath($file) > $file
stex "^/^l]" $new_name > null
system rename ("\""+$file+"\"") ("\""+$new_name+"\"")

done

# END OF SCRIPT
Patrick Mc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-08-2009, 12:35 AM   #9 (permalink)
Manager, TSF Articles
 
JohnthePilot's Avatar
 
Join Date: Mar 2006
Location: Cheltenham, near Wales.
Posts: 30,921
OS: XP Home SP3, PCLinux, Vista Home Premium SP1

My System

Blog Entries: 1
Send a message via MSN to JohnthePilot
Re: Renaming files with . dot (Moved from Windows XP)

Thanks Patrick and welcome to TSF.
__________________


If you feel that TSF has helped you please make a donationand help to keep the forum free
Cenedl heb iaith, cenedl heb galon

JohnthePilot is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-09-2009, 05:35 AM   #10 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Renaming files with . dot (Moved from Windows XP)

Okay if you want a simple way to do this:

- Download the "Superb Batch Renamer":
http://www.1-4a.com/rename/
- Once you've downloaded it, run the program.
- Navigate to the folder (In the treeview of your system)
- Change the radio button underneath the treeview to "Whole Name"
- Tick the replace button
- In "Replace this" put a "."
- Delete the contents of the "with that" box (so that its empty).
- Click the Start Button

Then to add the .ica extension:
- Click the extension radio button (below the treeview)
- Click the replace check box
- Delete the contents of the "replace this" textbox (so that everything is included)
- In the "With that" box put ".ica"
- Press the Start button

Sorry for the long winded solution but in all honesty it's the only one i've found which requires no actual programming.

Hope this helps.

Cheers,
Jamey
__________________

Myspace

Last edited by jamiemac2005; 02-09-2009 at 05:45 AM.
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-09-2009, 02:53 PM   #11 (permalink)
Manager, TSF Articles
 
JohnthePilot's Avatar
 
Join Date: Mar 2006
Location: Cheltenham, near Wales.
Posts: 30,921
OS: XP Home SP3, PCLinux, Vista Home Premium SP1

My System

Blog Entries: 1
Send a message via MSN to JohnthePilot
Re: Renaming files with . dot (Moved from Windows XP)

Thanks Jamey. Let's see how Habool gets on with those suggestions.
__________________


If you feel that TSF has helped you please make a donationand help to keep the forum free
Cenedl heb iaith, cenedl heb galon

JohnthePilot is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 02-09-2009, 02:58 PM   #12 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: Renaming files with . dot (Moved from Windows XP)

Yeah, i was hoping that he tried patricks(I always prefer the programmatic way tbh).
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 10:37 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85