The Elder Scrolls IV: Oblivion Game of the Year Edition (2009)

The Elder Scrolls IV: Oblivion Game of the Year Edition (2009)

Darth Derpy Dec 25, 2016 @ 6:37pm
Bat files won't work, even with the proper directory. What gives?
I have placed them in each and every possible path regarding Oblivion and Steam, yet my bat file will not work.

Now either I've missed a directory (that isn't the steam>steamapps>common>Oblivion) or there is an issue with Steam's version of Oblivion not allowing bat files to be used. Which is it?
< >
Showing 1-15 of 21 comments
Teralitha Dec 25, 2016 @ 6:58pm 
could you be more detailed?
Darth Derpy Dec 25, 2016 @ 7:20pm 
Originally posted by Teralitha:
could you be more detailed?
I have manually searched the entire directory of my C drive, and it is the only drive I have for my computer.

Every folder that said Steam or Oblivion I placed a test file in with a very simple name and used "bat filename" on it.

Can't be more detailed than I was in the OP.
Teralitha Dec 25, 2016 @ 9:36pm 
Ok so... you placed fake bat files on your computer, and are shocked when you discover they dont do anything.
Night[owl] Dec 26, 2016 @ 6:26am 
First time I heard about bat files (or Batched files which those really should be called).

OP:

Make sure you install Oblivion outside of default Program folder. Create a new folder on your hard disk like C:\Game. This is to avoid triggering of UAC, User Account Control from windows. FYI UAC is there to prevent malious content to be able to make changes to Windows and other important files without your knowledge.

Anyway there is mods to most of the same things as you probably want to do from reading a BAT file into console from Oblivion.

Here is what I suspect OP want to do: http://www.nexusmods.com/oblivion/mods/46198/?
Some one at that forums site suggest rename BAT to a text file (.txt). Maybe you should try to make sure that you know what you are actually doing before enable anything like this on your system? BAT files is something one should always make sure isn't doing something else as it is a method to do changes in Windows Registry etc. Open up those BAT files in Notepad (a bat(ched) file is a series of console commands written in text file format, but with a bat file extention to tell windows that it can applied and run as a series commands instead of being read into a wordprocessor/text editor like Notepad/MS Word etc.

You can actually do this directly from console by using step by step instruction from uesp.net on console commands [you shold learn what some basic commands in console can do] with more control or give yourself a God Mode with this mod/bat/text file. There is also a single command in console, where you will get a God Mode if you really want to do it without leveling up a character and no need to get a batched file to do this for you.


If you intention is to get some more combat out of this game, then I suggest that you take a look at combats mods and overhauls like OOO or Maskar's Oblivion Overhaul and some leveling system like Realistic Leveling (improve vanilla skillbased system) or Oblivion XP Update (point based more like most other MMOs and RPGs are today).


Last edited by Night[owl]; Dec 26, 2016 @ 6:31am
Darth Derpy Dec 26, 2016 @ 6:01pm 
Originally posted by Teralitha:
Ok so... you placed fake bat files on your computer, and are shocked when you discover they dont do anything.
I didn't say fake bat files. I said test bat files. Like a simple one line "player.additem x 1".



Originally posted by Nightowl:
First time I heard about bat files (or Batched files which those really should be called).

OP:

Make sure you install Oblivion outside of default Program folder. Create a new folder on your hard disk like C:\Game. This is to avoid triggering of UAC, User Account Control from windows. FYI UAC is there to prevent malious content to be able to make changes to Windows and other important files without your knowledge.

Anyway there is mods to most of the same things as you probably want to do from reading a BAT file into console from Oblivion.

Here is what I suspect OP want to do: http://www.nexusmods.com/oblivion/mods/46198/?
Some one at that forums site suggest rename BAT to a text file (.txt). Maybe you should try to make sure that you know what you are actually doing before enable anything like this on your system? BAT files is something one should always make sure isn't doing something else as it is a method to do changes in Windows Registry etc. Open up those BAT files in Notepad (a bat(ched) file is a series of console commands written in text file format, but with a bat file extention to tell windows that it can applied and run as a series commands instead of being read into a wordprocessor/text editor like Notepad/MS Word etc.

You can actually do this directly from console by using step by step instruction from uesp.net on console commands [you shold learn what some basic commands in console can do] with more control or give yourself a God Mode with this mod/bat/text file. There is also a single command in console, where you will get a God Mode if you really want to do it without leveling up a character and no need to get a batched file to do this for you.


If you intention is to get some more combat out of this game, then I suggest that you take a look at combats mods and overhauls like OOO or Maskar's Oblivion Overhaul and some leveling system like Realistic Leveling (improve vanilla skillbased system) or Oblivion XP Update (point based more like most other MMOs and RPGs are today).

If it's your first time hearing about them then your post likely won't help. They're commonly used and should be something most people know when playing Fallout/Elder Scrolls.
Night[owl] Dec 26, 2016 @ 6:20pm 
Maybe you should read what I wrote before you quote me?

Bat file isn't a common method today to actually mod Oblivion and you didn't explain properly what or why you wanted to use a bat file for.

With that kind of attitude you can just forget about anymore more help me.
Darth Derpy Dec 26, 2016 @ 7:21pm 
Originally posted by Nightowl:
Maybe you should read what I wrote before you quote me?

Bat file isn't a common method today to actually mod Oblivion and you didn't explain properly what or why you wanted to use a bat file for.

With that kind of attitude you can just forget about anymore more help me.
Because you didn't read what I was putting, and aren't using common sense?

Bat files aren't used for modding. At least as far as I know nor care. I use them to use simple console commands, like setting skills, levels, value levels (life, mana, etc), and changing quest stages should I accidentally spawn a quest related item. This isn't modding.

Either way, it shouldn't matter why I want to use it. It's a simple thing and it just isn't reading.
CullinB Dec 27, 2016 @ 7:47am 
Originally posted by Darth Derpy:
I have placed them in each and every possible path regarding Oblivion and Steam, yet my bat file will not work.

Now either I've missed a directory (that isn't the steam>steamapps>common>Oblivion) or there is an issue with Steam's version of Oblivion not allowing bat files to be used. Which is it?
Steam version of Oblivion can execute batch commad file well.
And such batch command file is to be located on the Folder as you mentioned.
Darth Derpy Dec 27, 2016 @ 8:30pm 
Originally posted by CullinB:
Originally posted by Darth Derpy:
I have placed them in each and every possible path regarding Oblivion and Steam, yet my bat file will not work.

Now either I've missed a directory (that isn't the steam>steamapps>common>Oblivion) or there is an issue with Steam's version of Oblivion not allowing bat files to be used. Which is it?
Steam version of Oblivion can execute batch commad file well.
And such batch command file is to be located on the Folder as you mentioned.
...yet they do not work.
CullinB Dec 28, 2016 @ 6:11am 
Hmm I tested today Storeing two text files on Oblivion folder
one file named num4.txt contains a line
fw 38eed
another named num5.txt contains a line
fw 38eee

Then kicked TES4 and type
RunBatchScript "num4.txt"
then
RunBatchScript "num5.txt"
They worked well
Weathers changed Snow then Clear.

dwharper Aug 25, 2017 @ 5:47pm 
I am having the same problem. Bat files work great for me in Skyrim, Skyrim SE and Fallout 4. I have no idea what RunBatchScript is and it does not work while playing Oblivion. But "bat filename" is not working either. I am running the Steam version of Oblivion updated by Steam.

I usually place comments after each line and thought maybe Oblivion could not read them. I created a test.txt file with just one line "additem 00033699 100" without the parenthesis and placed it in the main Oblivion folder. I opened the console, clicked on the cupboard I wanted to place them in and typed "bat test". It said "The file 'test' could not be opened.". I deleted the three leading zeros and tried again with the same results. I have used the item reference codes with and without leading zeros in the games I mentioned above with no problems.

I also typed "additem 00033699 100" manually and it worked. There are about 20 food items and about the same for drinks. Entering each one would be very hard. Copying the line and pasting it into the console doesn't work on my computer. So I would have to memorize each item code, which would be hard on an old man like me. I just want to play the game.

I usually have 3 or more companions it's very easy to give them everything you want them to have by using a bat file. I made their armor in TES4Edit and I have those item codes memorized.

I wanted to differentiate between batch and bat files. Batch files usually run under the operating system and have the extension ".bat". Bat files run in the console while running the game and have the extension ".txt". The language between the two have almost nothing in common.

It sounds to me like Darth Derpy knew what he was talking about. Something is going on with Steam or the game itself. I have never heard of mods interfering with it, but I suppose it may be possible. I have searched the web and not found anything useful. Any help from someone with actual knowledge on this would be helpful and I thank you in advance for helping me and the others who also may need it.
Last edited by dwharper; Aug 25, 2017 @ 6:29pm
Classified: TS/BBR Aug 25, 2017 @ 11:41pm 
I've admittedly mostly skimmed this thread, rather than reading it in depth, but two errors I did notice were:

1) Oblivion doesn't care what the file extension is, as long as the file type is plain-text. "test.bat", "test.txt", "test.sux", & "test." are all functionally the same, except as noted for point #2 below.

2) The bat command (for Steam Oblivion at least, but I asssume it's the same for disc versions) requires the full filename (but not path [unless the file is somewhere other than the Oblivion root directory, but I'm not even sure they'll work in that case]), meaning that "bat test" is looking for a file called "test" with no extension while "test.bat" requires "bat test.bat", "test.txt" requires "bat test.txt", & "test.sux" wants "bat test.sux"...
dwharper Aug 26, 2017 @ 12:33pm 
I believe you are wrong. Bat files for Oblivion have to be a text file with the extension .txt.

The command "bat" is stored in Oblivion.exe and using it only allows the filename and not the extension. Like "bat test". No path is allowed. As far as I know, the bat file absolutely has to have the extension .txt.

Batch files have the extension .bat and are also referred to as bat files due to their extension. They also are of the file type plain-text. They have to have the extension .bat. They are used by either clicking on them in Explorer or typing "cmd" on the "Run" prompt on the Start Menu, then typing the path and filename with or without the extension.

I have been playing Bethesda games for many years, probably since they first came out. I always use Bat files and for some reason they are not working on Oblivion.

The uesp console tutorial at "http://en.uesp.net/wiki/Oblivion:Console_Command_Tutorial#Using_Batch_Files_With_the_bat_Command" has a good explanation of how to use and build bat files.
Last edited by dwharper; Aug 26, 2017 @ 12:34pm
Classified: TS/BBR Aug 26, 2017 @ 11:52pm 
Like I said, inclusion of the path in the bat command wasn't something I've done, so that was admittedly a guess.

Use of "bat bhgr.zzz" or "bat bhgs" to access files called "zhgr.zzz" or "zhgs." to short-circuit the process of getting grapes & strawberries from the Battlehorn cook (I have done this manually, for the resources needed to grind alchemy to 100 in the past, I also have a 3rd party macro tool for a macro to do it) is something I did 3 days before stating it worked (& I just tested it again whilst typing this post, with the "bat bhgs").

Oblivion doesn't care what you call your batch files, only that they are in a format it can read with a name it can use.
dwharper Aug 27, 2017 @ 1:18pm 
Thanks. I will try it with extensions, but I don't really see why I would type the extra characters. The .txt extension is fine. I just can't seem to get it to work on Oblivion! I have about 60 mods and I'm trying to merge them with Wrye Bash to see if something there is causing the problem.
< >
Showing 1-15 of 21 comments
Per page: 1530 50