how do u make batch files?...


Recommended Posts

ive been wondering how do u make one

i heard batch files can run commands when clicked on

so how does it go?..

i wanna make a batch file that renames the allocated file names

Link to comment
Share on other sites

make them in notepad.. here's the basic commands

----------

@echo off

cls

normaldoscommand.exe

echo "This will display this text on the screen"

ren win.com win.exe

----------

then save as something.bat (not something.bat.txt)

Link to comment
Share on other sites

can u plz explain each command line to me

and where u got them from

and it didnt work btw

i put this in notepad and saved it as rename

------------------------------------

@echo off

cls

normaldoscommand.exe

echo "This will display this text on the screen"

ren C:WINDOWSsystem32dllcachemsgina.bak C:WINDOWSsystem32dllcachemsgina.backup

-------------------------------------

Link to comment
Share on other sites

@echo off <-- a given. it will make it so your computer doesn't display 'echo' every time you ask it to echo something

cls <-- clears screen

of course normaldosprogram.exe won't work. you don't have a program called that

so you'll just want this:

@echo off

cls

ren C:WINDOWSsystem32dllcachemsgina.bak C:WINDOWSsystem32dllcachemsgina.backup

echo "mgina.bak has been successfully renamed to msgina.backup

and if it doesn't work, tell me what it's saying.

Link to comment
Share on other sites

lol didnt work ahhh

i paste this in notepad saved as .bat

nothing happened

@echo off

cls

ren C:WINDOWSsystem32dllcachemsgina.bak C:WINDOWSsystem32dllcachemsgina.backup

echo "mgina.bak has been successfully renamed to msgina.backup

Link to comment
Share on other sites

I dont think C:WINDOWSsystem32dllcachemsgina.bak exists! you may want to check the name of the file located in that path.. I think you'll find its .dll

also check obviously if C:WINDOWS is correct.. I know it sounds stupid but I dunno how much you know of your system. so don't take it the wrong way...

What are you trying to do? if you explain it we can make a bat file for you here so you can copy/paste.

Link to comment
Share on other sites

oh na na thanks for u help

becoz im making a full hack for whistler

and some people

get lost in changing the dll cache uno rnaming files

and i wanted to make a batch files when click it will rename the file i list uno wat i mean?...

the reason why its msgina.bak is becoz

i named te dll to .bak already so im just doing ademo first

Link to comment
Share on other sites

Batch files are basicly a list of command-line commands. If you never used the command-line, then it will be difficult.

You can type "help" at the command-line for basic infos. And you can add "/?" to a command in order to get help. The windows-help has a list of available commands and examples too. Just open the help (Start/Help) and search for "command line" or something.

HTH

Link to comment
Share on other sites

Sometimes in WindowsXP IIRC batch files are no longer executed automatically by double clicking. I know mine aren't. You may have to open a DOS box, CD to the directory w/ the batch file, THEN type the name of it and hit enter.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.