Changing file extensions using Windows XP or Win7

Electronics Computer Programming Q&A
Post Reply
Rodney
Posts: 162
Joined: Sat Aug 31, 2002 1:01 am
Location: Titusville, FL USA
Contact:

Changing file extensions using Windows XP or Win7

Post by Rodney » Wed Feb 24, 2010 8:51 am

I have a CAD program that uses micros written in a form of basic. These are plain text programs like you create in Word Pad. They need to be saved with the extension .d3m but; I seem to not be able to save them in any form using Word Pad. It always ends up putting their own file extension on the end of the title. I can not change the extension when I rename them, the program always reinstalles the Microsoft type extensions after the name change. For instance, if I want to change the name of a file xxxxx.txt to ####7.d3m, it renames the file ####7.d3m.txt. Is there a way to make the program leave the extension I want?

SETEC_Astronomy
Posts: 582
Joined: Tue May 09, 2006 12:44 am
Contact:

Re: Changing file extensions using Windows XP or Win7

Post by SETEC_Astronomy » Wed Feb 24, 2010 10:52 am

Is there a reason you can't use Notepad? Wordpad adds extra information and formatting to files that can cause problems with certain programs. Do you have "Display known file extensions" enabled?

User avatar
haklesup
Posts: 2843
Joined: Thu Aug 01, 2002 1:01 am
Location: San Jose CA
Contact:

Re: Changing file extensions using Windows XP or Win7

Post by haklesup » Wed Feb 24, 2010 10:55 am

Yeah, Notepad does the same thing. You have several choices.

1. Simply rename the file in windows explorer after you save it and close wordpad.

2. Put Quotation marks around the file name when you save it, this will cause the file browser to honor your request for a specific name and extension.

3. Change the file type to *.* before you enter the file name in the save box

User avatar
CeaSaR
Posts: 1626
Joined: Sat Nov 08, 2003 1:01 am
Location: Phoenixville, PA USA
Contact:

Re: Changing file extensions using Windows XP or Win7

Post by CeaSaR » Wed Feb 24, 2010 12:34 pm

I'm a bit unclear on exactly what you are doing. Are you using a built-in editor in CAD or are you using WordPad/Notepad?
If it is a built-in, then it should save it correctly. If you are using WordPad, don't. It will append a secondary extension to
your filename. Use NotePad and select All Files under "Save As Type:" and you will be able to put any (or no) extension on
your file. You could write the script in anything and copy/paste into Notepad too. Just make sure to doublecheck the flow
of everything.

Or you could always rename them as Hacklesup describes. Just make sure you can see the original extension(s).

CeaSaR
Hey, what do I know?

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests