Solved

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

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

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

For a variety of reasons, it sometimes makes sense to reboot a Windows-based computer on a regular, perhaps daily basis. This "cures" a lot of ills by resetting processes, flushing caches, refreshing memory, and reestablish network connections. In a…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now