Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Problem running exe in Windows 7

14 Nov 2015   #1
jkepler

Windows 7 PRO x86
 
 
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 System SpecsSystem Spec
.
14 Nov 2015   #2
Ztruker

Windows 10 Pro X64
 
 

Are you running them from a Elevated Command Prompt? If not, try it.
My System SpecsSystem Spec
14 Nov 2015   #3
jkepler

Windows 7 PRO x86
 
 

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 System SpecsSystem Spec
.

14 Nov 2015   #4
Alejandro85

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
15 Nov 2015   #5
jkepler

Windows 7 PRO x86
 
 

Quote   Quote: Originally Posted by Alejandro85 View Post
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 System SpecsSystem Spec
15 Nov 2015   #6
Ztruker

Windows 10 Pro X64
 
 

How are you compiling them? Have you tried compiling them in Win 7?
Try running them in XP Compatibility mode?
My System SpecsSystem Spec
Reply

 Problem running exe in Windows 7




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Problem with DNS services within my laptop running Windows 7 Pro
Hi, I am problem with DNS services within my laptop running Windows 7 Pro - x64; Network adapters: Realtek PCIe GBE Family Controller, Intel(R) Centrino(R) Wireless-N 1030. 1.Followed steps below (as per some article) but no avail: netsh int ipv4 reset netsh winsock reset ipconfig...
Network & Sharing
Mysterious problem with laptop running Windows 7
Hello, I am running Windows 7 Home Premium 64 and recently I have ran into some weird problems, and I'm not sure of the cause. It started with my sound. Regular Windows sounds work but when I try to stream video online, it doesn't play sound. I tried playing video saved to my computer with...
General Discussion
Problem installing/running Windows Defender Offline
Greetings all, I currently am using Avast AV on my Win 7 64 bit machine. No known problems. I decided to try out the Windows Defender Offline 64 bit version. Downloaded 800k file and ran which prompted me to insert blank CD and it then downloaded and expanded the files onto the CD. All...
System Security
Windows XP Mode problem running older games
Hello, I am running Windows 7 Pro x64 and have been trying to run some old games in XP Mode. I keep getting error messages. "16 bit MS-DOS Subsystem, C:\WINDOWS\system32\cmd.exe, The video device failed to initialize for fullscreen mode." How can I fix or get around this error? Here are just...
Gaming
Problem running MS Windows Program
Using Windows 7 Professional 32-bit We haven't changed any hardware or BOIS lately. About a week ago, Windows Update would start to hang when down loading &/or installing an update. After this happened trying to shutdown would cause one of two things - Very long Installing Update followed by...
General Discussion
Problem running Worms 3D on Windows 7
Hi guys, Any ideas on running Worms 3D on Windows 7? I tried installing it, and it loads, but crashes just when it's about to load the main menu. I tried running it compatible with Windows XP SP2 and SP3 and I get the same result. Also, I tried running it as Administrator and nothing. Any other...
Gaming


Our Sites

Site Links

About Us

Find 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 02:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App