Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a bat file that I ran successfully on my old Windows Vista 32 bit system.

Now that I have upgraded to a 64 bit Windows 7 system, will it be possible to run the same bat file? Is there a difference between 32 bit bat files and 64 bit bat files?

Sorry, bit of a novice at all this.. Your help will be greatly appreciated.

share|improve this question

migrated from stackoverflow.com Dec 6 '09 at 11:12

This question came from our site for professional and enthusiast programmers.

add comment

4 Answers 4

It will probably work. Your problem won't be the batch file itself, as the format doesn't change, but may be, for example, the location of other programs it relies on.

In particular, if it relies on something being in Program Files, you might find that program has moved to Program Files (x86).

share|improve this answer
    
Also the fact that Program Files (x86) has parentheses in it may cause some batch files to fail nicely, especially when blocks are involved :-) –  Joey Dec 6 '09 at 12:02
add comment

It will* run ok since it's a script and not compiled.

Edit: It could fail for other reasons - see other people's caveats.

share|improve this answer
add comment

Certainly, you can run a bat file in x64 Windows. What you can't run, though, are 16 bit executables. If your batch script depends on one, you're going to have problems as the batch file will try to run the 16 bit program which will fail.

share|improve this answer
add comment

Script is just a list of command line to execute by operating System.. So if the commands in your BAT file are also in Windows7 it will work i think..

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.