Solved

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

Posted on 2007-11-19
2
411 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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