PC Review


Reply
Thread Tools Rate Thread

cmd vs command prompt and completing file/folder names

 
 
W. eWatson
Guest
Posts: n/a
 
      19th Mar 2009
It seems to me that cmd, as entered in Start->Run is the same as Command
Prompt under Accessories. I suppose the difference is the former allows for
arguments, correct?

Anyway, I'd like to use file/folder completion. It seems like I should be
able to do this w/o modifying the registry by just entering in Run:
/F:ON
However, that doesn't do it. I tried using Ctrl-F and -D. What's up?


--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>

 
Reply With Quote
 
 
 
 
BillW50
Guest
Posts: n/a
 
      19th Mar 2009
In news:xjswl.9998$%(E-Mail Removed),
W. eWatson typed on Thu, 19 Mar 2009 07:06:22 -0700:
> It seems to me that cmd, as entered in Start->Run is the same as
> Command Prompt under Accessories. I suppose the difference is the
> former allows for arguments, correct?
>
> Anyway, I'd like to use file/folder completion. It seems like I
> should be able to do this w/o modifying the registry by just entering
> in Run: /F:ON
> However, that doesn't do it. I tried using Ctrl-F and -D. What's up?


Command Prompt under Accessories Properties
%SystemRoot%\system32\cmd.exe

Yup, the same thing. And I see you are using a switch, but you need a
command plus a switch.

--
Bill
Asus EEE PC 701G4 ~ 2GB RAM ~ 16GB-SDHC
Windows XP SP2


 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      19th Mar 2009
BillW50 wrote:
> In news:xjswl.9998$%(E-Mail Removed),
> W. eWatson typed on Thu, 19 Mar 2009 07:06:22 -0700:
>> It seems to me that cmd, as entered in Start->Run is the same as
>> Command Prompt under Accessories. I suppose the difference is the
>> former allows for arguments, correct?
>>
>> Anyway, I'd like to use file/folder completion. It seems like I
>> should be able to do this w/o modifying the registry by just entering
>> in Run: /F:ON
>> However, that doesn't do it. I tried using Ctrl-F and -D. What's up?

>
> Command Prompt under Accessories Properties
> %SystemRoot%\system32\cmd.exe
>
> Yup, the same thing. And I see you are using a switch, but you need a
> command plus a switch.
>

Yep, CMD /F:ON
I think I was using Shift-F -D. It works now.
Someone told me F3 is supposed to do a completion, but I don't think so.

Is there a way to kill the window when it hangs? I have some problem with a
Python program that causes it to hang, which means I have to use
Ctrl-Alt_Del and then start again.

I'd like to start at a specific folder when I open, but don't seen any
command line args that allow me to do that. Did I miss one?
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]

/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/S Modifies the treatment of string after /C or /K (see below)
/Q Turns echo off
/D Disable execution of AutoRun commands from registry (see below)
/A Causes the output of internal commands to a pipe or file to be ANSI
/U Causes the output of internal commands to a pipe or file to be
Unicode
/T:fg Sets the foreground/background colors (see COLOR /? for more info)
/E:ON Enable command extensions (see below)
/E:OFF Disable command extensions (see below)
/F:ON Enable file and directory name completion characters (see below)
/F:OFF Disable file and directory name completion characters (see below)
/V:ON Enable delayed environment variable expansion using ! as the
delimiter. For example, /V:ON would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.
/V:OFF Disable delayed environment expansion.





--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>

 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      19th Mar 2009

"W. eWatson" <(E-Mail Removed)> wrote in message
news:xjswl.9998$%(E-Mail Removed)...
> It seems to me that cmd, as entered in Start->Run is the same as Command
> Prompt under Accessories. I suppose the difference is the former allows
> for arguments, correct?
>
> Anyway, I'd like to use file/folder completion. It seems like I should be
> able to do this w/o modifying the registry by just entering in Run:
> /F:ON
> However, that doesn't do it. I tried using Ctrl-F and -D. What's up?


Under WinXP the default name completion key is the Tab key. It only works if
you do NOT specify the /Fn switch.


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      19th Mar 2009

"W. eWatson" <(E-Mail Removed)> wrote in message
news:49twl.20823$(E-Mail Removed)...
> BillW50 wrote:
>> In news:xjswl.9998$%(E-Mail Removed),
>> W. eWatson typed on Thu, 19 Mar 2009 07:06:22 -0700:
>>> It seems to me that cmd, as entered in Start->Run is the same as
>>> Command Prompt under Accessories. I suppose the difference is the
>>> former allows for arguments, correct?
>>>
>>> Anyway, I'd like to use file/folder completion. It seems like I
>>> should be able to do this w/o modifying the registry by just entering
>>> in Run: /F:ON
>>> However, that doesn't do it. I tried using Ctrl-F and -D. What's up?

>>
>> Command Prompt under Accessories Properties
>> %SystemRoot%\system32\cmd.exe
>>
>> Yup, the same thing. And I see you are using a switch, but you need a
>> command plus a switch.
>>

> Yep, CMD /F:ON
> I think I was using Shift-F -D. It works now.
> Someone told me F3 is supposed to do a completion, but I don't think so.
>
> Is there a way to kill the window when it hangs? I have some problem with
> a Python program that causes it to hang, which means I have to use
> Ctrl-Alt_Del and then start again.
>
> I'd like to start at a specific folder when I open, but don't seen any
> command line args that allow me to do that. Did I miss one?
> CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
> [[/S] [/C | /K] string]


Create a shortcut to cmd.exe and specify the Startup folder. You can kill a
Command Prompt the same way as any other Windows process: Click the cross in
the top right-hand corner, or use the Task Manager.


 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      19th Mar 2009
Pegasus [MVP] wrote:
> "W. eWatson" <(E-Mail Removed)> wrote in message
> news:xjswl.9998$%(E-Mail Removed)...
>> It seems to me that cmd, as entered in Start->Run is the same as Command
>> Prompt under Accessories. I suppose the difference is the former allows
>> for arguments, correct?
>>
>> Anyway, I'd like to use file/folder completion. It seems like I should be
>> able to do this w/o modifying the registry by just entering in Run:
>> /F:ON
>> However, that doesn't do it. I tried using Ctrl-F and -D. What's up?

>
> Under WinXP the default name completion key is the Tab key. It only works if
> you do NOT specify the /Fn switch.
>
>

If I open a cmd window from Accessories, Tab just tabs.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>

 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      19th Mar 2009

"W. eWatson" <(E-Mail Removed)> wrote in message
news:Cyxwl.21589$(E-Mail Removed)...
> Pegasus [MVP] wrote:
>> "W. eWatson" <(E-Mail Removed)> wrote in message
>> news:xjswl.9998$%(E-Mail Removed)...
>>> It seems to me that cmd, as entered in Start->Run is the same as Command
>>> Prompt under Accessories. I suppose the difference is the former allows
>>> for arguments, correct?
>>>
>>> Anyway, I'd like to use file/folder completion. It seems like I should
>>> be able to do this w/o modifying the registry by just entering in Run:
>>> /F:ON
>>> However, that doesn't do it. I tried using Ctrl-F and -D. What's up?

>>
>> Under WinXP the default name completion key is the Tab key. It only works
>> if you do NOT specify the /Fn switch.

> If I open a cmd window from Accessories, Tab just tabs.
>
> --
> W. eWatson
>
> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
> Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
>
> Web Page: <www.speckledwithstars.net/>
>


This can happen for several reasons:
- When you specify the /Fn switch.
- If you have modified this registry key:
HKCU\Software\Microsoft\Command Processor\CompletionChar
(it should be DWord - 9)
- If you use Windows 2000.


 
Reply With Quote
 
W. eWatson
Guest
Posts: n/a
 
      19th Mar 2009
en, but don't seen any
>> command line args that allow me to do that. Did I miss one?
>> CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
>> [[/S] [/C | /K] string]

>
> Create a shortcut to cmd.exe and specify the Startup folder. You can kill a
> Command Prompt the same way as any other Windows process: Click the cross in
> the top right-hand corner, or use the Task Manager.
>
>

Ah, yes, a shortcut.

Here's the situation. If I have the Python interpreter window showing my
program, and it has a serious error when I try to execute it, then the
corresponding shell window where output goes freezes. The only way to bring
it down is using x or Ctrl-Alt-Del. Either use knocks down all Python
related windows.

Suppose instead I execute the same program from the cmd window, the same
thing happens. I have only two choices, as above, with the same results.
What I had hoped was maybe a Ctrl-C would just "kill" (shorcircuit?) the cmd
window to give me the prompt. Apparently that can't be done, so I have to
bring up the cmd window again, which means I have to wend my way back to the
folder I was in. That's why I asked if there's a command argument to start
me in a specific folder. Maybe I need to write a BAT file? If I can still
remember how! :-) It's been a long time.

--
W. eWatson

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Web Page: <www.speckledwithstars.net/>

 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      19th Mar 2009

"W. eWatson" <(E-Mail Removed)> wrote in message
news:tSxwl.21593$(E-Mail Removed)...
> en, but don't seen any
>>> command line args that allow me to do that. Did I miss one?
>>> CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON |
>>> /V:OFF]
>>> [[/S] [/C | /K] string]

>>
>> Create a shortcut to cmd.exe and specify the Startup folder. You can kill
>> a Command Prompt the same way as any other Windows process: Click the
>> cross in the top right-hand corner, or use the Task Manager.

> Ah, yes, a shortcut.
>
> Here's the situation. If I have the Python interpreter window showing my
> program, and it has a serious error when I try to execute it, then the
> corresponding shell window where output goes freezes. The only way to
> bring it down is using x or Ctrl-Alt-Del. Either use knocks down all
> Python related windows.
>
> Suppose instead I execute the same program from the cmd window, the same
> thing happens. I have only two choices, as above, with the same results.
> What I had hoped was maybe a Ctrl-C would just "kill" (shorcircuit?) the
> cmd window to give me the prompt. Apparently that can't be done, so I have
> to bring up the cmd window again, which means I have to wend my way back
> to the folder I was in. That's why I asked if there's a command argument
> to start me in a specific folder. Maybe I need to write a BAT file? If I
> can still remember how! :-) It's been a long time.
>


The ability to respond to Ctrl+C is provided by the Python interpreter, not
by the Command Processor.

I don't quite see why a shortcut won't meet your requirements - it would
certainly save you the navigation effort through the various folders. You
could even use it to start your Python interpreter . . .

A batch file has the same ability. There is no magic in basic batch files -
it's just a collection of console commands, as you would type them:
@echo off
cd /d "c:\Program Files\Python"
python.exe

You can set a default start folder for the Command Processor here:
HKCU\Software\Microsoft\Command Processor\AutoRun
"AutoRun" is a string or expanded string value. Its data could be this:
cd /d "c:\Program Files\Python"


 
Reply With Quote
 
Alister
Guest
Posts: n/a
 
      19th Mar 2009
Pegasus [MVP] wrote:
>
> I don't quite see why a shortcut won't meet your requirements - it would
> certainly save you the navigation effort through the various folders. You
> could even use it to start your Python interpreter . . .
>
> A batch file has the same ability. There is no magic in basic batch files -
> it's just a collection of console commands, as you would type them:
> @echo off
> cd /d "c:\Program Files\Python"
> python.exe
>
> You can set a default start folder for the Command Processor here:
> HKCU\Software\Microsoft\Command Processor\AutoRun
> "AutoRun" is a string or expanded string value. Its data could be this:
> cd /d "c:\Program Files\Python"
>
>


I thought I remembered from those far off days that there was a
"PowerToy" for 98 ME which gave you a context menu on folders to open a
command prompt in that folder.

I googled and the same thing is available for XP here:

http://download.microsoft.com/downlo...ertoySetup.exe

You could keep a My Computer window open and use this to start your
command prompt on any folder you want.

Alister
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete folder from the command prompt? Jack Windows Vista Installation 7 7th Mar 2008 05:43 AM
DOS prompt command (long directory names) Don Culp Windows XP General 2 25th Sep 2007 05:58 PM
using TAB key in command prompt won't guess names Gonzo Windows XP General 4 12th Jul 2006 08:58 AM
Navigating in Command prompt - long directory names Robert Lane Windows XP Help 6 10th Nov 2003 03:46 AM
Double-click on a folder opens command prompt ---want to just open folder Josh Windows XP General 1 18th Sep 2003 10:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 PM.