Problem running exe in Windows 7


  1. Posts : 4
    Windows 7 PRO x86
       #1

    Problem running exe in Windows 7


    Good morning,

    I'm having an issue regarding Windows 7.

    In the previous XP, I've compiled several scripts/programs to be runned in DOS. They compile without any error, and run smoothly in the command dos line.

    But in 7, nothing works - the exes compiled (also without error) just hangs, and occasionally I get a permission denied.

    This has to do, I think, with permissions. But where and what? The compilers? The exe itself? I've tryed almost everything...

    Any help would be apreciated..

    Kind regards,

    JKepler
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    Are you running them from a Elevated Command Prompt? If not, try it.
      My Computer


  3. Posts : 4
    Windows 7 PRO x86
    Thread Starter
       #3

    Hi,

    Yes, I did tryed that first. The compiled program comes from a perl script. Strangely, if I type "perl script.pl" it runs. But, after compilation, if I type "script.exe" it hangs...forever...

    Kind regards,

    JKepler
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #4

    Is this a DOS program or a native Windows program? if it's a 16 bits DOS program, try using DosBox to run it, as the built-in support in Windows has become progresively worse version after version.

    If it's a normal Windows executable, what it does actually do? What does it read? What does it write? What devices it tries to access? What is the exact error it gives?
      My Computer


  5. Posts : 4
    Windows 7 PRO x86
    Thread Starter
       #5

    Alejandro85 said:
    Is this a DOS program or a native Windows program? if it's a 16 bits DOS program, try using DosBox to run it, as the built-in support in Windows has become progresively worse version after version.

    If it's a normal Windows executable, what it does actually do? What does it read? What does it write? What devices it tries to access? What is the exact error it gives?
    Hi,

    The compiled program is a windows 32 native executable. Not a DOS program. The test I've made just prints to the cmd screen a message. As I've said, it runs in windows xp normally (in the dos propmt) and prints the message. But in 7, it just hangs - no error. As if it was expecting some kind of input. Why doesn't the same thing happens in XP?
    Indeed I've tryed DosBox - which tells me is not a DOS program.

    Cheers,

    JKepler
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    How are you compiling them? Have you tried compiling them in Win 7?
    Try running them in XP Compatibility mode?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 22:42.
Find Us