473,439 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,439 software developers and data experts.

a better command line on Windows

bartonc
6,596 Expert 4TB
If you like me and think the ms cmd.exe really bites, check out consol2
here.
Nov 28 '06
76 9962
ghostdog74
511 Expert 256MB
If you are on XP,server 2003 or Vista, you can download windows Powershell
Jan 27 '07 #51
NeoPa
32,556 Expert Mod 16PB
That looks like Cmd.Exe just grew up :)
Jan 27 '07 #52
bartonc
6,596 Expert 4TB
If you are on XP,server 2003 or Vista, you can download windows Powershell
Thanks, GD. I downloaded it and installed it on my "other" machine. I'm checking out the built-in help to see if it could be as usable a my trusty python.
Jan 28 '07 #53
bartonc
6,596 Expert 4TB
That looks like Cmd.Exe just grew up :)
Just what I expected. Help files in rich text only - no real links in wordpad. It's fine if you love typing better than mousing (which requires memerizing the commands rather than visualizing them).
Jan 28 '07 #54
Killer42
8,435 Expert 8TB
Just what I expected. Help files in rich text only - no real links in wordpad. It's fine if you love typing better than mousing (which requires memerizing the commands rather than visualizing them).
As any real programmer does, of course. :)
Jan 28 '07 #55
Cyberdyne
627 Expert 512MB
here we go again hahaha VISTA IS OUT SO LETS HAVE SOME FUN
Feb 1 '07 #56
Motoma
3,237 Expert 2GB
here we go again hahaha VISTA IS OUT SO LETS HAVE SOME FUN
...
*cries*
Feb 1 '07 #57
bartonc
6,596 Expert 4TB
...
*cries*
I'm with you on this one.
Feb 1 '07 #58
bartonc
6,596 Expert 4TB
If you like me and think the ms cmd.exe really bites, check out consol2
here.
I just found a very cool feature in Console2!

Type the name of the file (in my case SomeFile.py) and this shell is lanch the associated program (run the python script, in this case)!

This coupled with the GUI "startup directory" picker and tons of Hot Keys make Console2 worth setting as the defualt cmd in the registry (IMHO).
Apr 22 '07 #59
NeoPa
32,556 Expert Mod 16PB
You know that's been in Cmd.Exe for a long while don't you?
Apr 23 '07 #60
Killer42
8,435 Expert 8TB
You know that's been in Cmd.Exe for a long while don't you?
Actually, I think you're mistaken.

In CMD.EXE, don't you have to use the START command for anything other than EXE, COM, BAT and VBS extension?
Apr 23 '07 #61
NeoPa
32,556 Expert Mod 16PB
You just need to try it out Killer ;)
The answer's no anyway. You don't need to use 'Start' and you can start an application simply by typing in the name of an associated document.
Nice one hitting the 3,000 BTW :)
Apr 23 '07 #62
bartonc
6,596 Expert 4TB
You know that's been in Cmd.Exe for a long while don't you?
I generally avoid the command line like the plague. It's only now that I have an interface that I like that I've begun to play around with it. Good to know that about the old piece of c..p, anyway. Thanks.
Apr 23 '07 #63
Killer42
8,435 Expert 8TB
You just need to try it out Killer ;)
Well blow me down! I've always believed you had to use "start". :embarrassed: (I really need that reference to the smilies.)

...
Nice one hitting the 3,000 BTW :)
Oh, thanks. :) Didn't realise I had.


Barton, I've always been quite fond of the command line. Even now, it allows you to do things that are quite difficult or long-winded in the gui. Not that I'd like to give up the gui, of course.
Apr 23 '07 #64
NeoPa
32,556 Expert Mod 16PB
I don't know one for :Embarrassed: I'm afraid, but any others you see - simply do a Reply to plagiarise the code :)

When Start was first introduced (NT 3.0 I believe), it was necessary to use Start if, but only if, you wanted to run a command asynchronously. Nowadays, the default is to run asynchronously from the command line, but Start does give other options which you don't get from CMD natively (Ironically, the WAIT option is now the only way to run a command synchronously).
Apr 23 '07 #65
Chrisjc
375 256MB
Id rather stay with CMD =)
Apr 23 '07 #66
Killer42
8,435 Expert 8TB
Id rather stay with CMD =)
You sure can't beat the availability.
Apr 23 '07 #67
bartonc
6,596 Expert 4TB
Id rather stay with CMD =)
It turns out (looking in Task Manager) that Console2 is just a better UI (edit menu and hotkeys for things like Copy and Paste) wrapper for cmd.exe. It has always bugged me to have to go up to the top-left icon to find the menus in cmd.
Apr 28 '07 #68
Killer42
8,435 Expert 8TB
It turns out (looking in Task Manager) that Console2 is just a better UI (edit menu and hotkeys for things like Copy and Paste) wrapper for cmd.exe. It has always bugged me to have to go up to the top-left icon to find the menus in cmd.
I don't go to the corner - I just hit Alt-Space. Much quicker, since you're using the command line, and therefore the keyboard.

Still, one of these days I'll find time to check out Console2 or something similar. (Let's see, that's after I learn Java, VB.Net, and one or two other minor tasks...)
Apr 29 '07 #69
NeoPa
32,556 Expert Mod 16PB
It turns out (looking in Task Manager) that Console2 is just a better UI (edit menu and hotkeys for things like Copy and Paste) wrapper for cmd.exe. It has always bugged me to have to go up to the top-left icon to find the menus in cmd.
I can certainly sympathise on that one Barton.
Even with the shortcut keys Killer mentions, that interface is still (inexplicably) very 1990s. Copying and Pasting still have to be done without the ^C/^X/^V interface almost universal elsewhere :(
Apr 30 '07 #70
bartonc
6,596 Expert 4TB
It turns out (looking in Task Manager) that Console2 is just a better UI (edit menu and hotkeys for things like Copy and Paste) wrapper for cmd.exe. It has always bugged me to have to go up to the top-left icon to find the menus in cmd.
Did I mention that it also has tabs for different sessions (each in a specifiable directory of their own)?
Apr 30 '07 #71
Killer42
8,435 Expert 8TB
Did I mention that it also has tabs for different sessions (each in a specifiable directory of their own)?
Sounds nice.
Apr 30 '07 #72
bartonc
6,596 Expert 4TB
Sounds nice.
How 'bout this cool feature:
Tab brings up the next file in the directory. Hit return to launch it.
Jun 25 '07 #73
bartonc
6,596 Expert 4TB
. Start > Run > regedit
. open HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
. right-click on Shell > New > Key
. name it Command Prompt (or anything you think is descriptive for yourself)
. in the right frame, for the default value, of the Command Prompt key you jsut made, enter whatever text you want to appear in the context menu (e.g. Open Command Prompt Here -or- Commaaaaaannnd!)
. back in the left frame, right-click Command Prompt (or whatever you called it) > New > Key
. name this sub-key command [it must be named command to work]
. in the right frame of command, set the default value to Cmd.exe /k pushd %L

the last step will launch Cmd.exe; the /k switch will keep it open; the pushd command stores the name of the current directory, and %L uses that name to start the command prompt at it. this method will work instantly, only on folders, NOT files
This would make a good entry in the tips and tricks section.
Aug 1 '07 #74
bartonc
6,596 Expert 4TB
. Start > Run > regedit
. open HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
. right-click on Shell > New > Key
. name it Command Prompt (or anything you think is descriptive for yourself)
. in the right frame, for the default value, of the Command Prompt key you jsut made, enter whatever text you want to appear in the context menu (e.g. Open Command Prompt Here -or- Commaaaaaannnd!)
. back in the left frame, right-click Command Prompt (or whatever you called it) > New > Key
. name this sub-key command [it must be named command to work]
. in the right frame of command, set the default value to Cmd.exe /k pushd %L

the last step will launch Cmd.exe; the /k switch will keep it open; the pushd command stores the name of the current directory, and %L uses that name to start the command prompt at it. this method will work instantly, only on folders, NOT files
I finally got around to doing this. It works great! I use it all the time now.
Aug 14 '07 #75
epots9
1,351 Expert 1GB
i just did it now....this can be very handy :D
Aug 14 '07 #76
Killer42
8,435 Expert 8TB
i just did it now....this can be very handy :D
I've just gotten around to putting it in, only seven months after Barton posted it. That may be record time, for me. Hm... less than seven months!
Aug 15 '07 #77

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Joe | last post by:
I'm using Python 2.4 on Windows XP SP2. I'm trying to receive a command line argument that is a newline (\n) Here is the command line to use sample.py "\n" Here is a sample.py script
7
by: Ken Innes | last post by:
I am trying to write a little program that can be run as a Windows program or as a command line program. I'm really not sure the best way to do this, so what I came up with so far was to check for...
0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
1
by: Matt | last post by:
I used to execute a command line script in IIS 4 using Dynuexec. This is a third part server object I installed on the server (http://www.dynu.com/dynuexec.asp). I installed this object onto my...
7
by: Steve M | last post by:
I'm trying to invoke a Java command-line program from my Python program on Windows XP. I cannot get the paths in one of the arguments to work right. The instructions for the program describe the...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
5
by: randyelliott | last post by:
Good Day, I have a MS Access (Access 2000 now upgraded to 2003) database that tracks customer information. One function of this database is to create an encrypted license file for our software,...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
7
by: John F | last post by:
Not exactly a C question (sorry), but I couldn't find a ng that seems more suitable... On the Unix shell command line I can successfully write cc -DPATH=\"abcd/\" program.c -o program to...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.