Results 1 to 26 of 26

Thread: MSDOS batch file not opening

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Member mor dan's Avatar
    Join Date
    Nov 2006
    Location
    in the good ol' US of A. my brothr is in the Airforce, and i am proud of what he does for his country.
    Posts
    122

    Default MSDOS batch file not opening

    when i try to run the mymod.bat file i get an error saying:

    "This file does not have a program associated with it for performing this action. Create an association in the Folder Options control panel."

    there is no entry in my Folder Options for a .bat file. i created one and associated it to cmd.exe and then command.exe. neither works. they just pull up a command window, but won't run the game. what am i missing?
    "Signatures tell the forum who you are. If you make jokes, you are a clown. If you leave serious quotes, you take things seriously. If you challenge the owner of the forums, you are a malcontent.

    The Owners are like a government. If you make jokes, they laugh. If you make serious quotes, they keep an eye on you, while probing public opinion on your remarks. If you challenge them, you are a threat." - me on the SWG forums before they censored my sig

  2. #2
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: MSDOS batch file not opening

    Hello mor dan,

    Assuming XP: http://www.totalwar.org/tosa/WinXP-Bat.zip

    It's about choice.com. You could try it for Vista, I do not know whether that works.

    Another thing is that the bat file does try to work, but can't find the program it should work on. This happens when either the bat file or the program is in a wrong location.

    Is it about M2TW? Usually batfiles for games are made for the root of that game (or a subfolder), not the desktop. If you want it on the desktop, create a shortcut from the batfile and drag that to the desktop (select the bat in its working location, right mouse, create shortcut).
    Ja mata

    TosaInu

  3. #3
    Member Member mor dan's Avatar
    Join Date
    Nov 2006
    Location
    in the good ol' US of A. my brothr is in the Airforce, and i am proud of what he does for his country.
    Posts
    122

    Default Re: MSDOS batch file not opening

    Quote Originally Posted by TosaInu
    Hello mor dan,

    Assuming XP: http://www.totalwar.org/tosa/WinXP-Bat.zip

    It's about choice.com. You could try it for Vista, I do not know whether that works.

    Another thing is that the bat file does try to work, but can't find the program it should work on. This happens when either the bat file or the program is in a wrong location.

    Is it about M2TW? Usually batfiles for games are made for the root of that game (or a subfolder), not the desktop. If you want it on the desktop, create a shortcut from the batfile and drag that to the desktop (select the bat in its working location, right mouse, create shortcut).

    i followed the tutorial and copy and pasted from the modding tutorial in the M2TW section, so if everything should work. not to mention, before 1.2 i was actually using the mymod folder instead of the 'io file first' line. all of the files are in the parent folder with medieval2.exe. for whatever reason, though, when i double clicked the .BAT file it said there was no program associated with that extension. when i added the cmd.exe to the association, it opens a command window but doesn't execute anything. i can then type in the command line: medieval2.exe @mymod.cfg

    and it will work. but my concern is still that somehow the MSDOS batch program was disconnected from the .bat extension.
    "Signatures tell the forum who you are. If you make jokes, you are a clown. If you leave serious quotes, you take things seriously. If you challenge the owner of the forums, you are a malcontent.

    The Owners are like a government. If you make jokes, they laugh. If you make serious quotes, they keep an eye on you, while probing public opinion on your remarks. If you challenge them, you are a threat." - me on the SWG forums before they censored my sig

  4. #4
    Member Member mor dan's Avatar
    Join Date
    Nov 2006
    Location
    in the good ol' US of A. my brothr is in the Airforce, and i am proud of what he does for his country.
    Posts
    122

    Default Re: MSDOS batch file not opening

    ok, i added the choice file where the read me said to, but it still doesn't launch the program when launch the .bat file. i have to type it into the command line.
    "Signatures tell the forum who you are. If you make jokes, you are a clown. If you leave serious quotes, you take things seriously. If you challenge the owner of the forums, you are a malcontent.

    The Owners are like a government. If you make jokes, they laugh. If you make serious quotes, they keep an eye on you, while probing public opinion on your remarks. If you challenge them, you are a threat." - me on the SWG forums before they censored my sig

  5. #5
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: MSDOS batch file not opening

    hmm...

    When you hover your mouse over the bat file, what does its association show up as (ie it should read 'Type: Windows Batch File')
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  6. #6
    Member Member mor dan's Avatar
    Join Date
    Nov 2006
    Location
    in the good ol' US of A. my brothr is in the Airforce, and i am proud of what he does for his country.
    Posts
    122

    Default Re: MSDOS batch file not opening

    no, it says MS-DOS batch file
    "Signatures tell the forum who you are. If you make jokes, you are a clown. If you leave serious quotes, you take things seriously. If you challenge the owner of the forums, you are a malcontent.

    The Owners are like a government. If you make jokes, they laugh. If you make serious quotes, they keep an eye on you, while probing public opinion on your remarks. If you challenge them, you are a threat." - me on the SWG forums before they censored my sig

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO