CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Mac
Discussion about CrossOver Mac

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

How to run a '.bat' file when autorun fails

Hi

I recently got a CD from the hospital with my MRI scans. Unfortunately it's designed to run in Win 2000 or XP.

The CD is meant to Auto run but the 'read me' file says that if it does not then I should doubleclick on the 'RunViewer.bat' file.

I've created a WinXP bottle and tried to run the 'RunViewer.bat' program but nothing happens.

I've installed things like IE7 and other runtime support components but can't get it to run.

Anyone got any suggestions. I've also tried it in a Win 2000 bottle too, same result.

Cheers.

Hi,

The ,bat file will be a plaintext file, and will contain
the actual program name of the viewer exe and which file it's
trying to open. Without seeing the batch file itself, it's near
impossible to guess what you're looking at...but in basic terms
it's just the DOS form of a shellscript/startup.ini to launch
another program. If you know nothing about these kind of things,
(and considering most .bat files are small) just paste the
contents of it back here if you get stuck...

Cheers!

It may be easiest to use the Run Command to run the batch file. I think it should work to use the Browse button to pick the .bat file and just run that. If that doesn't seem to work for some reason, you can insert "start" and a space before the path.

If that still doesn't work, you can run the command "wineconsole cmd" to get a Windows-style command prompt. Then, you can issue commands to locate and run the .bat file.

Hi, thanks for the help guys.

I figured it out from the first bit of advice saying how the .bat file is merely a pointer to the .exe file.

I opened the .bat in Text Edit and sure enough it gave me the name of the program I was looking for buried deep on the CD I had from the hospital and with a completely unexpected and non descriptive name!

Anyhow, I opened Crossover and using the Run Command pointed it in the direction of said .exe file and hey presto all works 😊

Thanks for your help. Mark.

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi01LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzQxNzA1NjM5LCJjc3JmX3Rva2VuIjoiZjdLQXJIQWZ0Q1JrcUNBNyIsImdkcHIiOjB9