Page 1 of 1
How to rename files in a batch file.
Posted: Sat Nov 15, 2008 7:35 pm
by Cyril
very nice, thank you.
i dont supposed you know how to do a bat that will switch the names of two files?
Re: CPU Affinity Batch File
Posted: Sat Nov 15, 2008 11:31 pm
by Archon
Fear I don't quite get what you mean. Like just tell it to rename a file?
If that IS what you mean, just
ren OLDNAME NEWNAME
But that seems kinda silly? You can do that in windows easier. So I ask again -- what do you actually mean? lol
Re: CPU Affinity Batch File
Posted: Mon Nov 17, 2008 8:17 pm
by Cyril
ok highlander has a mod for netmech wich i quite like. but others don't, and to is a pain to switch back and forwarth.
highlander's fix is to install netmech twice to have have one modded and one normal. i dont like that.
now to use the mod. i have to use the files he has provided in my netmech diretory, and named to what the orginal files were named to. thus i have to change the orginal files' name to NETMW2.EXE.bak and MW2SHELL.EXE.back
and the mods to the orginal names NETMW@.EXE and MW2SHELL.EXE
it would be nice to have a batch to switch the two,,,or two bats that do, "mod on" and "mod off"
Re: CPU Affinity Batch File
Posted: Mon Nov 17, 2008 9:28 pm
by Archon
Yeah, that's easy enough, just rename highlander's mod files to like "NETMW2.exe.high" and "MW2SHELL.exe.high", and then have something like this:
This will rename the files and enable the mod:
Code: Select all
ren NETMW2.exe NETMW2.exe.bak
ren MW2SHELL.exe MW2SHELL.exe.bak
ren NETMW2.exe.high NETMW2.exe
ren MW2SHELL.exe.high MW2SHELL.exe
Then you can use this to switch them back:
Code: Select all
ren NETMW2.exe NETMW2.exe.high
ren MW2SHELL.exe MW2SHELL.exe.high
ren NETMW2.exe.bak NETMW2.exe
ren MW2SHELL.exe.bak MW2SHELL.exe
That what you were looking for? Just put the batch files in the netmech directory and you're golden. You can also put them anywhere you like, but then you'd have to include this at the beginning of each:
Archon