PC Review


Reply
Thread Tools Rate Thread

can't set filename completion character for cmd.exe

 
 
perl coder
Guest
Posts: n/a
 
      24th Jun 2004
Hello, I've got an account (with admin privs) on a Win2000 Server box,
and wish to set the filename completion character to the Tab key. I
made a shortcut on the desktop to cmd.exe and set the parameters to
/fn /k doskey /macrofile=c:\doskey.mac, and the completion does work
but only with the Ctrl-F or Ctrl-D default sequence. I read the "help
cmd" page and saw that you can edit a registry key to set a custom
completion character, so I changed
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\CompletionChar
to 9 intead of the default 40. I used 9 since that's the decimal (and
hexadecimal as well) value for the ASCII Tab character. But alas, no
cigar! :-( I even rebooted the machine and logged in again but still no
luck. Does anyone know what must be changed to be able to use the Tab
key? BTW, I'm connecting to the box with a Terminal Services Client,
if that makes any difference...


--
No crazy stuff in my email. ;-)
 
Reply With Quote
 
 
 
 
Gary Smith
Guest
Posts: n/a
 
      30th Jun 2004
perl coder <(E-Mail Removed)> wrote:
> Hello, I've got an account (with admin privs) on a Win2000 Server box,
> and wish to set the filename completion character to the Tab key. I
> made a shortcut on the desktop to cmd.exe and set the parameters to
> /fn /k doskey /macrofile=c:\doskey.mac, and the completion does work
> but only with the Ctrl-F or Ctrl-D default sequence. I read the "help
> cmd" page and saw that you can edit a registry key to set a custom
> completion character, so I changed
> \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\CompletionChar
> to 9 intead of the default 40. I used 9 since that's the decimal (and
> hexadecimal as well) value for the ASCII Tab character. But alas, no
> cigar! :-( I even rebooted the machine and logged in again but still no
> luck. Does anyone know what must be changed to be able to use the Tab
> key? BTW, I'm connecting to the box with a Terminal Services Client,
> if that makes any difference...


From the help text for cmd.exe: "If completion is enabled with the /F:ON
switch, the two control characters used are Ctrl-D for directory name
completion and Ctrl-F for file name completion." This applies no matter
what the registry settings. If you want to enable your own choice for the
completion character, do NOT specify the /F option when invoking cmd.exe.

--
Gary L. Smith (E-Mail Removed)
Columbus, Ohio
 
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
Strip illegal character from filename ExcelLars Microsoft Outlook VBA Programming 6 21st May 2008 09:33 AM
command line completion bug when filename starts with "[" =?Utf-8?B?Q2FsaW4gSWFydQ==?= Windows XP General 5 11th Mar 2006 12:22 AM
Re: weird character in filename , specific to IE Glenny Thomas Windows XP Internet Explorer 0 31st Aug 2005 10:24 AM
Re: weird character in filename , specific to IE Hans Le Roy Windows XP Internet Explorer 1 31st Aug 2005 10:22 AM
invalid character in filename shoua h. Windows XP General 5 1st Oct 2004 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:54 AM.