Problem running exe in Windows 7

jkepler

New member
Local time
6:59 AM
Messages
4
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 PRO x86
Antivirus
AVAST
Browser
Mozilla Firefox
Are you running them from a Elevated Command Prompt? If not, try it.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 PRO x86
Antivirus
AVAST
Browser
Mozilla Firefox
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

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 PRO x86
Antivirus
AVAST
Browser
Mozilla Firefox
How are you compiling them? Have you tried compiling them in Win 7?
Try running them in XP Compatibility mode?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top