Command Prompt oddities

InvaderPar

New member
Member
Local time
11:43 PM
Messages
22
So I've got this Autohotkey script that I use to replace explorer.exe. I'm trying to get a command line working (instead of the standard Win+R), however I'm running into some odd problems.

I'm an admin user, and if I run cmd from Win+R, I don't have any problems. I can run every command I can think of that exists in the System32 folder. For example, I can run 'sndvol' and 'soundrecorder' without problems.

1.JPG3.JPG

However, whenever I run a command from Autohotkey (which is running as admin), or even run a command from the command prompt that was initiated from Autohotkey, some things don't seem to be recognized. For example, I can run 'sndvol' no problem, but I can't run 'soundrecorder'.

5.JPG


I did notice something though, when I run Autohotkey as admin, the command prompt inherits that and it gets "Administrator:" at the beginning of the window title. However, this isn't making a difference, because running Autohotkey not as admin produces the same results.

So basically, the question is, what can cause the command prompt to not recognize certain commands? Is it a privilege issue? Is it an issue with those commands? What can I try?

Very odd problem... I would greatly appreciate help.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion dv5
OS
Win7 Ultimate x64
CPU
Intel Dual 2.16 Ghz
Memory
4GB
Graphics Card(s)
NVidia GeForce 9200M GS, 256MB
Hard Drives
320GB internal, 320GB external, 1TB external to come (big download library XD)
When CMD is run, certain commands will be followed, regardless of the soruce. Other commands, you must right click and run as administrator.
Any command that affects the OS, must be run as administrator.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
It is running as admin. The title of the command prompt says "Administrator:"

I even turned off UAC and that didn't help. (Autohotkey is already running as admin)
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion dv5
OS
Win7 Ultimate x64
CPU
Intel Dual 2.16 Ghz
Memory
4GB
Graphics Card(s)
NVidia GeForce 9200M GS, 256MB
Hard Drives
320GB internal, 320GB external, 1TB external to come (big download library XD)

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Nope. Same results.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion dv5
OS
Win7 Ultimate x64
CPU
Intel Dual 2.16 Ghz
Memory
4GB
Graphics Card(s)
NVidia GeForce 9200M GS, 256MB
Hard Drives
320GB internal, 320GB external, 1TB external to come (big download library XD)
I guess nobody's ever run into this issue before... If anyone could at least reference me to somewhere where I can learn about command prompt permissions (or anything that might be related to this issue), I'd most appreciate it.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion dv5
OS
Win7 Ultimate x64
CPU
Intel Dual 2.16 Ghz
Memory
4GB
Graphics Card(s)
NVidia GeForce 9200M GS, 256MB
Hard Drives
320GB internal, 320GB external, 1TB external to come (big download library XD)
No, sounds like a path issue - run echo %path% in a regular cmd prompt, and then again in the autohotkey cmd prompt and compare the differences. I'll bet the autohotkey's path is different - you may need to pass the full path when calling .exes under a cmd prompt run as a different user (as "run as administrator" does).
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Back
Top