Solved

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

Posted on 2007-11-19
2
409 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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). …

860 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