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: have a command prompt live on the desktop?

21 Jul 2011   #11
MilesAhead

Windows 7 32 bit
 
 

I uploaded TopmostToggle 1.5.0.0 again. Now the Zip file includes the source. You can see what attributes I change if you want to do the same via NirCmd or another utility.


My System SpecsSystem Spec
.
22 Jul 2011   #12
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by ImaSyko View Post
Hi,
I'd like to be able to have a command prompt (instance of cmd.exe) that is always active, and is always underneath everything else. I know I can start cmd at startup, but I don't know how to force it to stay beneath other windows at all times. I don't want to be able to alt-tab to it, I don't want it to appear in the taskbar, I just want it to live on the desktop, exhibiting behavior similar to what windows 7 calls a gadget.

If there are shell alternatives (preferably free) which would allow this behavior, I'd be willing to consider them.

This isn't really a big deal, it's just something I thought would be kind of neat.
Thanks for any ideas.
I've been reading up on some of the window extended styles. Seems like the
WS_EX_NOACTIVATE

style would keep it on the bottom. But then you wouldn't be able to type into it. I'm not sure if just calling SetForegroundWindow() would allow it to get keyboard input.
I'm curious why you want it on the bottom though?
My System SpecsSystem Spec
22 Jul 2011   #13
Thorsen

Win7 Home Premium 64x
 
 

I know from doing DB creation and installs, the DB is written in a manner that you need to specify parameters in the command line to run install. The install can take 10 minutes for updates or for Oracle DB creations 5+ hours. This is sitting in a cmd window just running so if it was possible to lock it to the desktop, keep it from focus on alt-tab or any other method than actually typing into it, you just wait till the command finishes. instead of worrying about accidentally closing or moving or loosing track of your 5hour install...
My System SpecsSystem Spec
.

22 Jul 2011   #14
Thorsen

Win7 Home Premium 64x
 
 

But i never really thought of how useful a specific locked window just for that would be.

You also use cmd quite a lot with networking. I cant tell you how many times i have opened up a cmd just to tnsping something and to get the ip addy for specific server environments. Having a cmd window sitting there ready to run a command saves a bunch of steps if you are setting up multiple servers and are constantly verifying connections or server ips
My System SpecsSystem Spec
23 Jul 2011   #15
MilesAhead

Windows 7 32 bit
 
 

So how do you type into the cmd prompt in the first place if it never has the focus? Or are you just talking using for batch?
My System SpecsSystem Spec
23 Jul 2011   #16
Thorsen

Win7 Home Premium 64x
 
 

Oh sorry I meant that it doesn't get focus from anything else until you type in the screen.
My System SpecsSystem Spec
23 Jul 2011   #17
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by Thorsen View Post
Oh sorry I meant that it doesn't get focus from anything else until you type in the screen.
I see. I didn't mess around with it enough to judge the behavior. I'll have to experiment as it may be a generally useful attribute to employ.

Edit: when I change the extended style of an existing window to include WS_EX_NOACTIVATE it won't accept keystrokes after that. At least it doesn't seem generally useful to me. Seems like something more for a window being on top without grabbing keyboard focus or something. Anyway if I have a long command line job I can just minimize the window.
My System SpecsSystem Spec
Reply

 have a command prompt live on the desktop?




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
How to fix MBR through command prompt?
Question: What commands could I run in the command prompt during the system recovery? I try & run say "fixmbr" but it doesn't work. Say if I want to write a new master boot record how would I do that?
General Discussion
Command Prompt
How to Open a Command Prompt in Windows 7 This will show you how to open only a non-elevated a command prompt without administrator rights instead of an elevated command prompt with administrator rights (Run as administrator) in Windows 7. Some commands will need to be used in an elevated...
Tutorials
command prompt
Hi all i need you help me a thing :cry: I went to use autosave all text on command prompt (CMD), how can i do or use what command prompt cade for mark it autosave when i used command prompt. Example : Color 0a
General Discussion
A file in Desktop cant be deleted. Command prompt doesnt recognize it.
The files name is "Music Place", which is an application from Toshiba. I can not find it in the desktop folder and all the programs that i have used are not able to recognize this file as existing in the desktop. Ive tried to delete it in safe mode but it didnt work. Ive also tried to delete it...
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
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 00:03.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App