command files with extension bat or cmd will not run when clicked on for all users , even admins, and regardless of where the batch file is located. Took out the anti-virus and even did a system restore to a point prior to the AV installation.
This problem does not relate to anything the batch file is doing. I created a simple batch file in the Desktop that does a dir followed by a prompt and it will not run either.
The error window that pops up says "Windows cannot access the specified device, ports or file"
I checked the security on \Windows\System32\cmd.exe and Users have read&execute and read rights.
The batch file will not run if started from the Start menu - Run.
The batch file will run if "Run As Admin" is used.
The batch file will run if a regular command prompt is opened and run from within that.
At this point I'm tempted to reinstall W7 but we do not have the installation disk :( , so a proper resolution would be most helpful.
Thanks.
TechNet