Winston Posted March 28, 2002 Share Posted March 28, 2002 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 More sharing options...
skooter Posted March 28, 2002 Share Posted March 28, 2002 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 More sharing options...
Winston Posted March 28, 2002 Author Share Posted March 28, 2002 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 More sharing options...
skooter Posted March 28, 2002 Share Posted March 28, 2002 @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 More sharing options...
autodefe Posted March 28, 2002 Share Posted March 28, 2002 If u have an understanding of BASIC, making batch files should come easy to you.. Link to comment Share on other sites More sharing options...
Winston Posted March 28, 2002 Author Share Posted March 28, 2002 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 More sharing options...
skooter Posted March 28, 2002 Share Posted March 28, 2002 uh.. you've gotta run it, too. you know; double click the little icon with a cog in it. Link to comment Share on other sites More sharing options...
Winston Posted March 28, 2002 Author Share Posted March 28, 2002 huh watcha mean with a cog? Link to comment Share on other sites More sharing options...
Steven P. Administrators Posted March 28, 2002 Administrators Share Posted March 28, 2002 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 More sharing options...
K-LineD Posted March 28, 2002 Share Posted March 28, 2002 maybe you are trying to backup the .dll to some .bak dont you?:paranoid: Link to comment Share on other sites More sharing options...
nomis_nehc Posted March 28, 2002 Share Posted March 28, 2002 uhh... and just to let you know, msgina is a protected file, you have to boot into safe mode or replace it in dos anyways. Link to comment Share on other sites More sharing options...
Winston Posted March 28, 2002 Author Share Posted March 28, 2002 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 More sharing options...
tmeg Posted March 28, 2002 Share Posted March 28, 2002 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 More sharing options...
radioboy Posted March 28, 2002 Share Posted March 28, 2002 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 More sharing options...
neowin_hipster Posted March 28, 2002 Share Posted March 28, 2002 If you simply want to write the files with a pattern or change extensions writing a program is a better option. Basic is different from dos. Link to comment Share on other sites More sharing options...
Recommended Posts