Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: No REG Command in "Open elevated command window here" DOS Box

15 May 2012   #11
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by MilesAhead View Post
Quote   Quote: Originally Posted by Brink View Post
It wouldn't be the "explorer.exe" process. It should be a "cmd.exe" process instead of a "cmd.exe *32" one.

Did you merge the Default_CMD.reg instead earlier?

If you like as a test, create a new administrator account to see how it works while logged on to the new account.
It would be Explorer.exe if he ran it by double clicking the .reg file in a 32 bit instance of explorer. Whichever it is, it still sounds like he's getting the 32 bit emulation redirection.

I have my own PromptHere you can download here:
http://www.favessoft.com/hotkeys.html

It has the ahk source code. You can download AHK_L and compile in 64 bit if you want. Anyway, it doesn't rely on the registry since it doesn't do context menu. It uses a hotkey. Select a folder and hit the hotkey.

Uses optional blur window on W7.
Sorry, I was thinking of the process for the command prompt for "Open elevated command window here".


My System SpecsSystem Spec
.
15 May 2012   #12
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by fwcetus View Post
Update: (and, before having a chance to mull over MilesAhead's post)

I happened to try "Open[ing] Command Window Here as Administrator", with "C:\Windows\System32\" as the directory, and then with "C:\Windows\SysWOW64\" as the directory, and, in both cases, REG works as it should.

However, selecting any other directory (including other ""C:\Windows\" subdirectories) and "Open[ing] Command Window Here as Administrator" results in a CMD box where REG does not work.

Reg.exe is, of course, located in both "C:\Windows\System32\" and "C:\Windows\SysWOW64\", not surprisingly.

Strange...
echo %path%
please post output
My System SpecsSystem Spec
15 May 2012   #13
fwcetus

Windows 7 Professional x64 SP1
 
 

Quote   Quote: Originally Posted by Brink View Post
It wouldn't be the "explorer.exe" process. It should be a "cmd.exe" process instead of a "cmd.exe *32" one.

Did you merge the Default_CMD.reg instead earlier?

If you like as a test, create a new administrator account to see how it works while logged on to the new account.
OK. Every explorer.exe is a 64-bit process.

When I use the CMD box from Accessories, it runs as a 64-bit process.

However, any CMD box that comes up from the context menu, whether it's the "regular" CMD window from the "Open command window here" menu item, or the CMD window in question here from "Open elevated command window here", is running as a 32-bit process.

Yes, I did use the Default_CMD.reg file.
My System SpecsSystem Spec
.

15 May 2012   #14
fwcetus

Windows 7 Professional x64 SP1
 
 

echo %path%
C:\BatCom\;C:\Programs\SscePortable;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo ws\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\C ommon Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\ Intel\Services\IPT\;
My System SpecsSystem Spec
15 May 2012   #15
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by MilesAhead View Post
Quote   Quote: Originally Posted by Brink View Post
It wouldn't be the "explorer.exe" process. It should be a "cmd.exe" process instead of a "cmd.exe *32" one.

Did you merge the Default_CMD.reg instead earlier?

If you like as a test, create a new administrator account to see how it works while logged on to the new account.
It would be Explorer.exe if he ran it by double clicking the .reg file in a 32 bit instance of explorer. Whichever it is, it still sounds like he's getting the 32 bit emulation redirection.

I have my own PromptHere you can download here:
Hotkeys

It has the ahk source code. You can download AHK_L and compile in 64 bit if you want. Anyway, it doesn't rely on the registry since it doesn't do context menu. It uses a hotkey. Select a folder and hit the hotkey.

Uses optional blur window on W7.
Sorry, I was thinking of the process for the command prompt for "Open elevated command window here".
I understand. I was just thinking if the system passed him a 32 bit explorer it might reflect into the 32 bit emulation. Whereas if he invoked it via a 64 bit command prompt it shouldn't. But it's all just speculation. I just suggested my alternative since it doesn't depend on the registry. It just uses a clipboard macro to get the name(s) of the folder(s).
My System SpecsSystem Spec
16 May 2012   #16
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

So REG isn't working
start a CMD which is not working
cd \
REG ->this fails
cd C:\Windows\system32
REG

does that work?
My System SpecsSystem Spec
16 May 2012   #17
fwcetus

Windows 7 Professional x64 SP1
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
So REG isn't working
start a CMD which is not working
cd \
REG ->this fails
cd C:\Windows\system32
REG
does that work?
Please see the screen cap, Kaktussoft -

No REG Command in "Open elevated command window here" DOS Box-2012-05-16_093522.gif

As you can see, REG works (as in it is recognized as a command) in C:\Windows\System32 and in C:\Windows\SysWOW64, but not anywhere else, it seems.


My System SpecsSystem Spec
16 May 2012   #18
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

your path is C:\BatCom\;C:\Programs\SscePortable;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo ws\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\C ommon Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\ Intel\Services\IPT\;

Maybe a file called reg.exe, reg.com, reg.bat is in C:\BatCom\ or C:\Programs\SscePortable? please check that
My System SpecsSystem Spec
16 May 2012   #19
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by fwcetus View Post
echo %path%
C:\BatCom\;C:\Programs\SscePortable;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo ws\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\C ommon Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\ Intel\Services\IPT\;
C:\Program Files x86)\Windows Live\Shared
should be C:\Program Files (x86)\Windows Live\Shared

Typing error?

C:\Programs\SscePortable => what program is that? Is it realy in c:\programs? or C:\Program Files (x86)?

C:\BatCom\ => why slash at the end? (it doesn't matter I assume)
My System SpecsSystem Spec
16 May 2012   #20
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
your path is C:\BatCom\;C:\Programs\SscePortable;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo ws\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\C ommon Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\ Intel\Services\IPT\;

Maybe a file called reg.exe, reg.com, reg.bat is in C:\BatCom\ or C:\Programs\SscePortable? please check that
C:\BatCom\ is most likely the problem!! Put on the end of path.

So cut C:\BatCom\; from start and paste it on end. Press OK multiple times.
Now start cmd again, did path change?

post results
How To Add/Edit Environment Variables in Windows 7 | Windows7hacker
My System SpecsSystem Spec
Reply

 No REG Command in "Open elevated command window here" DOS Box




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Missing "Open With" command with right-click
Hi Folks: If I right-click a single file, the "open with" command is missing in Windows 7 Home Premium.:( How do I fix this missing command? Thanks, MS:D
General Discussion
Can't open cmd through "open command window here"
I have searched and do everything on fixing the registry, but still I can't open the CMD by right click in a folder and choose "open command window here." The windows says: "THis file does not have a program associated with it for performing this action. Please install or if one is installed...
General Discussion
Problems about windows 7 "open command window here" shift-right click
When I clicked on "open command window here" on shift-right click menu. It shows me an error message as the attachment. Before it works fine until last month. Does Windows last update update caused that problem or I did something wrong?
General Discussion
Adding "Open Command Prompt" Option
Hey guys, I know there's a way to add a "Open command window here" when you click ON a folder... but what I'm curious about is if there's a way to do that if you're IN a folder. It never made sense to me, if I want to run a command-line utility like ffmpeg on a file, to have to go up a folder,...
Customization
"open with" command not working correctly
Hi, I've been using XP for 6 years and just switched to Windows 7 3 days ago when I got a new computer. The default image viewing is Windows Photo Viewer, which is fine. I am running Fireworks MX (yes, I know it's old, but I can't afford to buy a newer version), and sometimes I'd like to...
General Discussion
Open elevated command window here
I could prolly figure it out but does anyone know offhand how to add an "Open elevated command window here" option in addition to the "Open command window here" shift+context menu for a folder?
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:08.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App