Solved

Environment variables - Can't get program to run although it's in path

Posted on 2007-11-19
2
406 Views
Last Modified: 2013-11-29
My System32 folder is listed in my Environment Variables path.  I have a command line program that I copied to that folder.  The application will not start from the System32 folder or from any other folder.  However, it will start from another folder if it is present in that folder.  In other words, abc.exe will run at a command prompt at c:\xyz, if abc.exe is in c:\xyz.  So, I know that the application is working.  If I try to run it otherwise, I get the message that it's not an internal/external command, program, or batch file.  Other command line programs that are in System32 seem to work as they should throughout the system.  Thanks.  
0
Comment
Question by:sjw601
2 Comments
 
LVL 6

Accepted Solution

by:
c661jmb earned 250 total points
ID: 20394874
Can I just mention that it is extremely bad practice to run a program from the system32 folder.

This folder is for Windows Specific files not end user or third party applications.

You should install and run your program from the c:\program files(x86) folder.

You could infact cause a false positive for your AV scanner as it is trying to execute a non certified executable from the system32 folder. Much like a real virus may do and could block the program from running.

Hope this advice helps.

0
 

Author Closing Comment

by:sjw601
ID: 31410014
Thanks.  I created \program files(x86)\AppFolder and placed the exe there.  I added the path to my environment, and it now works.  I have several command line tools, and the publishers always suggest dropping the exe in System32.  I'd still like to know why it wouldn't run from there.  My AV is set to not scan for unwanted or unsafe applications, and it would have issued an alert if it found the program objectionable otherwise.  I also tested it by disabling my AV, and the app still wouldn't run from System32.  
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now