|
|
|
rename file extentions
|
Original Message
|
Name: JohnFL
Date: August 8, 2007 at 08:43:06 Pacific
Subject: rename file extentionsOS: Windows XP HomeCPU/Ram: P4/2gigsModel/Manufacturer: Gigabyte |
Comment: I'm sure this has been discussed before, but searching did not bring up the results i want. I have a lot of files that do NOT have file extentions on the ends of them. I want to put the ".txt" extention on the end of them. I don't think that is that hard to do, but i have these files in multiple sub folders. Is there a program, or a dos command, that would let me add the ".txt" extention, to all the files that do NOT have an extention on them, and ALSO, to do that to all the files in the sub folder off of the mail folder?
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: StuartS
Date: August 8, 2007 at 09:08:13 Pacific
Subject: rename file extentions |
Reply: (edit)Are you sure they don't have extensions or are the extensions just hidden from view. Check in Folder Options > View in Windows Explorer; Hide Extensions for Known file types. Changing file extensions, even those that don't have any, can have unpredictable results. Make sure you know what you are doing otherwise you will be back here asking why some applications don't work they way they used to. Stuart
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: JohnFL
Date: August 8, 2007 at 09:11:27 Pacific
Subject: rename file extentions |
Reply: (edit)No these files are infact TXT files, that do not have the extentions on them. If i manually rename them with a .txt extention, then they are viewable.
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: StuartS
Date: August 8, 2007 at 09:26:12 Pacific
Subject: rename file extentions |
Reply: (edit)I'm afraid that doesn't prove anything. The only way to check for sure is in Windows Explorer. If you try to add a extension, say on a file that the has a .dat extension that is hidden, with a .text extension it will show because it then becomes part of the filename. If you were to undide the extension you would then see filename.txt.DAT, with only the .dat being relevant. This is an error on the part of Microsoft that viruses tended to exploit because file extensions are hidden by default. What you thought was a text file with .txt extension was in fact and .exe file with the extension hidden with the consequences of double clicking that. Stuart
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: JohnFL
Date: August 8, 2007 at 09:30:21 Pacific
Subject: rename file extentions |
Reply: (edit)I know that files can have hidden extentions, but these do NOT. I don't know how else to tell you that. I will ask my question again........ Is there a command that will let me rename file extentions in more than just the main folder? I want to be able to do it to the main folder, and also all sub folders off of that folder.
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: Mechanix2Go
Date: August 8, 2007 at 09:43:15 Pacific
Subject: rename file extentions |
Reply: (edit)Change c:\temp to suit your path. ::== addtxt @echo off setLocal EnableDelayedExpansion for /f "tokens=* delims= " %%a in ('dir/s/b/a-d c:\temp\*.') do ( ren %%a %%~Na.txt ) ::==
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|
|
Response Number 6
|
Name: JohnFL
Date: August 25, 2007 at 09:51:25 Pacific
Subject: rename file extentions |
Reply: (edit)Mechanix2Go... Thank you so very much !!! Sorry i did not get back to you earlier, but we were on vacation. What a pleasant surprise to find your reply to my question. Thank you again !
Report Offensive Follow Up For Removal
|
|
Response Number 7
|
Name: Mechanix2Go
Date: August 26, 2007 at 02:00:41 Pacific
Subject: rename file extentions |
Reply: (edit)Glad that helped. ===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
|
Use following form to reply to current message:
|
|

|