Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Unable to edit/run a .bat file win7 sp1

25 Oct 2011   #1

Win 7 premium SP1 x86
Unable to edit/run a .bat file win7 sp1

Hi, this my first thread here, i have read some of the other threads regarding .Bat files and running them ,but none of the suggestions have so far worked for me,

Here is the situation, i installed an old game R6Vegas2 to c:/games instead of the protected programe files(default install location) the game it's self works fine, but it's a mod for this game that uses bat files, teknor6vegas2.exe wich then injects it's code into the games .exe so i need to be able to edit the bat file and run it,

so far all that happens is the dos cmd window opens and closes within2 seconds nothing else
things that i have tried,disabled uac, taken ownership /full control
copied a sortcut to the desktop (.bat file) and changed to run as admin all made no difference at all,
in win xp it works without all this faffing around

My System SpecsSystem Spec
25 Oct 2011   #2
Microsoft MVP

Windows 7 Ult. x64


teknor6vegas2.exe isn't a .BAT file. The way you wrote your post implies that this is a batch file, but its an executable file so you won't be able to edit it (not as a typically batch file anyway). Can you check your original post to see if you got the bat file name correctly?

My System SpecsSystem Spec
25 Oct 2011   #3

Win 7 premium SP1 x86

Sorry for the mis understanding but to hopefully clear it up, the Teknor6vegas 2.30 mod, consists of 1 exe(teknor6vegas2) and 3 .bat files, inside them there are 3 fields that relate to the terrorist cap player cap and eyefinity so i can enable/disable eyefintiy option allow more than the standard 4players online to the max 16players and finally increase the number of AI upto 99,
2 PlayerCap_99Terrorist_NoEyefinity.bat
3 NoPlayerCap_NormalTerrorists_Eyefinity.bat
1. Copy to your <Rainbow Six Vegas 2 game folder>\Binaries
2. Run from Console or use included BAT files.
3. Have fun!!!
are the instructions, I haven't tried running from console,as i'm not familiar with the parameters needed
Using win xp the bat files can be edited in notepad,, via right clicking & selecting edit option (not present on win7) then by selecting open/run the bat file runs/starts the teknor6vegas2 exe with the chosen parameters which then presumably modifies the r6vegas2.exe ( reloaded no cd exe) that ubisoft in their day tried to claim as their own work, until reloaded went public,lol, more details on it here:
My System SpecsSystem Spec

25 Oct 2011   #4

Windows 7 Professional SP1 32-bit

Windows 7 should let you rightclick each .bat file and select Edit to open it in Notepad. I'm guessing that the .bat files assume the default location for your installed game and you need to change that path.
My System SpecsSystem Spec
25 Oct 2011   #5

Win 7 premium SP1 x86

Quote   Quote: Originally Posted by Corazon View Post
Windows 7 should let you rightclick each .bat file and select Edit to open it in Notepad. I'm guessing that the .bat files assume the default location for your installed game and you need to change that path.
That's what i can't understand but there is no edit option available & the open= run, dos window flickers on/off that's all it does, as for the game not being in programe files, it has made no difference ,it's because it failed there re installed it to a different location, what is a bat file supposed to open with in file associations, any one know?
My System SpecsSystem Spec
25 Oct 2011   #6

Windows 7 Pro x64 (1), Win7 Pro X64 (2)

Just open Notepad and navigate to the BAT file and select it, and open it that way.
My System SpecsSystem Spec
25 Oct 2011   #7

64-bit Windows 10 Pro

Hello Toby, and welcome to Seven Forums.

Are these files in a ZIP folder by chance?

If so, you would need to extract (drag and drop) the files to say your desktop first before you will have the "Edit" option when you right click on the BAT file.

If you did, then you might see if downloading and merging the BAT option in the tutorial below may be able to help by restoring all default associations for BAT files.
Default File Type Associations - Restore
Hope this helps,
My System SpecsSystem Spec
26 Oct 2011   #8

Win 7 premium SP1 x86

Thank's for that i did have to associate the reg file previously as win7 didn't have a clue , i shall give the .bat default assoications a go, after trying different things the .bat files will for some reason run the exe file if they are on a different partition ,my system is dual boot, xp on other partitition, with same game and mod files weird, thing is i should be able to run it from the win7 partition, if win7 is going to be so restrictive maybe it's a bad choice of os ?

Merged the reg eteries default .bat still no change, run as admin nothing, the short cut is pointing to the correct path so im at a loss

Idon't know if it will help at all but here is a screen shot of it when run succesfully on other partition (using that the files from that partition not win7 partition)

Ithink that when i try and run this bat file pointing to the game installed on the same partition as win7 it opens the normal cmd prompt, which opens & closes within 1 second, where as if do the same but pointing to a different installation of the game on a different partition it opens the elevated cmd prompt so works as intended, why do microsoft think that 2 cmd prompts are needed?
My System SpecsSystem Spec

 Unable to edit/run a .bat file win7 sp1

Thread Tools

Similar help and support threads
Thread Forum
Unable to edit hosts file
Hello, I have a laptop that it doesn't allow me to edit hosts file. I tried many ways first I tried to give myself permissions in properties - edit but it gave me 'access denied' when trying to apply.. And I tried a method I found on google is to open a notepad with administration then open the...
General Discussion
Unable to delete a file from Desktop in Win7
Hi, Can anyone suggest a way to delete a file from Desktop! I'm not joking.. I unzipped a folder that had a file with a really long file name... I have no idea how it got there.. I'm unable to open/ move/ copy/ rename/ delete that file.. In short it is unrecognized by the Win 7 file system...
General Discussion
Unable to edit files in ZIP folders
Win7 has this neat feature where I can navigate into a compressed (zip) file from Windows Explorer. The icon appears like a folder with a zipper through it & I can just navitage where I please. However, I can't edit a file in the zip folder directly. I have to first copy it out of the zip, edit...
General Discussion
Unable to edit a file
hello, I facing a strange problem in windows 7. I am running PHP and Apache web-server on my windows 7 platform. I have the php.ini file in my C:/ drive <Windows> folder. I tried to edit and save the file. After editing when I tried to save the file it tells me that this file is being used by...
System Security
Unable to install from .cab file on Win7 remote desktop
Hi, I have a pc running on Win XP in office. As part of testing, i had to try and install an activex control packaged in a .cab file on a Windows 7 and Internet explorer 8 from an application we built. I connect to this Windows 7 machine using the remote desktop connection from my PC running on...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:43.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App