Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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