I would like to run a bunch of .CMD files from anywhere on my server. However, when I add the path that these files are in to my PATH in System Environment Variables, they don't run. I can run them if I go to the actual folder, however.
I am trying to make the following directory globally accessible:
C:\Amazon\IAMCli-1.5.0\bin\
AWS_IAM_HOME is set to:
C:\Amazon\IAMCli-1.5.0
My PATHEXT profile is as such:
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
If I run my Path command, I get the following reply:
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Dell\DW WLAN Card;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\OpenSSL\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Peter\AppData\Roaming\npm;C:\Program Files (x86)\nodejs\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; C:\Amazon\IAMCli-1.5.0\bin\; C:\Amazon\ElasticLoadBalancing-1.0.17.0\bin\; C:\Amazon\AutoScaling-1.0.61.1\bin\; C:\OpenSSL\bin\;
I am trying to run the following .CMD file globally by issuing
C:\Amazon\IAMCli-1.5.0\bin\iam-userlistbypath.cmd
I am logged in as a non-admin user by have verified that if I run the Command prompt as admin, I get the same result. The permissions for the folder
C:\Amazon\IAMCli-1.5.0
are:
Authenticated Users (Modify, Read & Execute, List folder contents, Read, Write)
SYSTEM (Full control)
Administrators (Full control)
Users (Read & Execute, List folder contents, Read)
Any ideas?
Thanks.