Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Computer Support > Getting DOS form of a path?

Reply
Thread Tools

Getting DOS form of a path?

 
 
Terry Pinnell
Guest
Posts: n/a
 
      11-14-2005
I used to know some trick for converting a long path name in XP to its
'DOS' short name equivalent. It was something to do with dragging it
or pasting it into an XP Command Prompt window. But I'm darned if I
can recall it now. Anyone able to help please? Objective is to get
this into short form, as I think the old program I'm working with
expects its INI file to contain a reference in that form.

C:\Program Files\Mozilla Firefox\firefox.exe

--
Terry, West Sussex, UK
 
Reply With Quote
 
 
 
 
why?
Guest
Posts: n/a
 
      11-14-2005

On Mon, 14 Nov 2005 19:54:48 +0000, Terry Pinnell wrote:

>I used to know some trick for converting a long path name in XP to its


That's nice

>'DOS' short name equivalent. It was something to do with dragging it
>or pasting it into an XP Command Prompt window. But I'm darned if I


Neither of those.

>can recall it now. Anyone able to help please? Objective is to get
>this into short form, as I think the old program I'm working with
>expects its INI file to contain a reference in that form.
>
>C:\Program Files\Mozilla Firefox\firefox.exe


dir /x , displays short paths as you change dirs. It's not that great.

Command line util
http://www.mkssoftware.com/docs/man1/dosname.1.asp
looks like info only, didn't read all of it.

Me
 
Reply With Quote
 
 
 
 
Trax
Guest
Posts: n/a
 
      11-14-2005
Terry Pinnell <> wrote:

|>I used to know some trick for converting a long path name in XP to its
|>'DOS' short name equivalent. It was something to do with dragging it
|>or pasting it into an XP Command Prompt window. But I'm darned if I
|>can recall it now. Anyone able to help please? Objective is to get
|>this into short form, as I think the old program I'm working with
|>expects its INI file to contain a reference in that form.
|>
|>C:\Program Files\Mozilla Firefox\firefox.exe

The old fashion way count over 7 characters and add ~1
c:\progra~1\Mozill~1\firefox.exe

If there is a space - leave it out (but it counts as one character)

C:\Program Files\ACD Systems\ACDSee\acdss.exe
becomes
C:\Progra~1\ACDsys~1\ACDSee\acdsee.exe


--
http://urbanlegends.about.com/b/a/218350.htm#more
 
Reply With Quote
 
Trax
Guest
Posts: n/a
 
      11-14-2005
Terry Pinnell <> wrote:

<resent, cause I screw's up>

|>I used to know some trick for converting a long path name in XP to its
|>'DOS' short name equivalent. It was something to do with dragging it
|>or pasting it into an XP Command Prompt window. But I'm darned if I
|>can recall it now. Anyone able to help please? Objective is to get
|>this into short form, as I think the old program I'm working with
|>expects its INI file to contain a reference in that form.
|>
|>C:\Program Files\Mozilla Firefox\firefox.exe

The old fashion way count over 6 characters and add ~1
c:\progra~1\Mozill~1\firefox.exe

If there is a space - leave it out

C:\Program Files\ACD Systems\ACDSee\acdss.exe
becomes
C:\Progra~1\ACDsys~1\ACDSee\acdsee.exe

----
I cut out "(but it counts as one character)" trying to justify the 7
:}

--
http://urbanlegends.about.com/b/a/218350.htm#more
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
IOS DoS defense causes DoS to itself:) Igor Mamuziæ Cisco 2 05-19-2006 11:59 PM
Outsmarting DOS C compiler to print to USB printer -- use DOS interrupt? tomhr C Programming 27 01-12-2006 04:09 PM
[newbie]How to install python under DOS and is there any Wxpython can be installed under dos? john san Python 19 02-18-2005 12:05 PM
Unable to run MS-DOS in Windows and DOS properties tabs missing Don Computer Support 5 02-11-2004 07:20 PM
Executing DOS (yes, DOS) program from within Python? Ben Fairbank Python 2 10-07-2003 08:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57