Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to run .bat files with Wine?


    Hello,
    I am trying to run a windoze program with wine, but it is not a .exe file, but rather a .bat file. I tried
    Code:
    wcmd
    bash: wcmd: command not found
    So I tried
    Code:
    wineconsole
    This window popped up but disappeared immediately, and the terminal was done running it! What is going on, and how do I fix it?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Aug 2006
    Posts
    63

    cmd, not wcmd

    It's called cmd now, not wcmd.

  3. #3
    I tried
    Code:
    # cmd program_name.bat 
    bash: cmd: command not found
    so I searched for all files with "cmd" in the name, and got about 400. So after looking through the list, I decided to try
    Code:
    # /usr/lib/wine/cmd.exe.so program_name.bat 
    Segmentation fault
    So what is a "segmentation fault?"

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2006
    Posts
    63

    Try this

    First off, never run windows programs as root,
    it's not safe! Only run them as a non-privileged user

    It looks like 'cmd' isn't installed so you can run it
    directly from the commandline, but should be able to do
    wine cmd foo.bat

    As for your other question, see
    Segmentation fault - Wikipedia, the free encyclopedia
    It's a long name for 'crash'.

  6. #5
    Hope this link would be useful:
    Using Microsoft C++ Toolkit on Linux

  7. #6

    Try this

    cd ~/.wine/drive_c/windows/system32/

    and then "wine cmd.exe" then try to run your batch file from there,

    I run debian so your directories might be a bit different but you get the idea

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •