How is .txt file different from a .dat file in C?

How do I ensure that changing a file extnsion from .txt to .asx really changes the fiele type to .asx?

  • How do I ensure that changing a file extension from .txt to .asx really changes the file type to .asx? I need to convert .txt files to .asx files before uploading them to an ftp site. But on some computers the typing .asx over .txt works every time on others I get .asx.txt or .txt.asx as the extension, which does not work. Any ideas about what I can do to convert .txt to .asx every time on every computer would be great. I'm using PCs.

  • Answer:

    The easiest way to do it is to make the change in DOS.... 1. Click Start > Run... and then type CMD and hit OK. 2. navigate to the folder on your hard drive that the text files are sitting in - you do this by typing "cd" then a space and then the full path of the folder (eg "cd e:\my folder\my subfolder") 3. then type: rename *.txt *.asx to rename everything with a txt extension to an asx extension. Hope that helps!

Simon R at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

You will not make any changes to the CONTENT of a file, by giving it a different extension. the only difference changing the extension will make, is to change the program that the operating system uses to open the file.

Vinni Rubiks

changing the file's extension change only the file's extension not the type too (there are some files with different extensions but with the same format) i do not know about asx files, but you you want to change file's extension from .txt to .asx make sure before doing it that your windows explorer shows file's extension (in order to rename it). you can check your setting from tools menu -> folder options -> view...

the_man_behind_the_desk

when saving, click the dropdown menu and select "all files" then put the extention to .asx and not .txt that should work assuming you are using notepad :)

DancingBeaver

Sound like you may not be able to see the file extensions of your files on some computers. This means when you type yourfilename.asx you end up with yourfilename.asx.txt If that is the case you can go to Start > Control Panel, locate and open File Options and select the View tab, scrool down to and uncheck the box for "Hide file extensions for known file types" click apply and OK. You should now be able to see the file extensions making them easier to change. Im ignoring the fact that changing a file extension does not automatically change a text file into another type of application such a s video. It just changes the the program that is associated with that particular file type. Notpad is associated with .txt files .asx are associated with: http://whatis.techtarget.com/file-extension-list-A/0,289933,sid9,00.html Don't know if any of that helps.

Changing the ame of a file WON'T change it's type. The extention is only a part of a file's name. The operating system is using that part of the file's name to determine it's type, but, if the file content hasn't the specific format of that type, this is useles... To convert a file from one type to another, use a program that can open files of the type you are trying to convert from and save files in the format you try to convert to. Open the file and save it as the desired file type. The program will modify both the name (attaching the proper extention) and the format of the file's content.

Bogdan

this is simply a tag for the operating system to know what to use to open the file, it wont change the file type.

englishelectirc

thi is the weakest way of changging file type you're talking about the best wauy is to use open with..... or many prgrams such as acdsee helps you asighn certin extentions to them "i suggest you use this way

Rami

file extension really shouldn't make a difference.

drlzrdmn

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.