PC Review


Reply
Thread Tools Rate Thread

Determining DOS filename of a Win 2000 file

 
 
Sue Parkhurst
Guest
Posts: n/a
 
      21st Jan 2004
How can one determine the DOS 8.3 name of a Word 2000
file? We are using the ISYS 5 search program, which
indexes files based on the DOS file name. When we
encounter problems with a file, we can't determine which
file is causing the problem because we don't know how to
reconcile between the 8.3 name and the long name we use.

We would certainly appreciate any help! Thanks.
 
Reply With Quote
 
 
 
 
Danny Sanders
Guest
Posts: n/a
 
      21st Jan 2004
Run dir /x on the folder holding the document.

hth
DDS W 2k MVP MCSE

"Sue Parkhurst" <(E-Mail Removed)> wrote in message
news:212c01c3e062$9d1b3a50$(E-Mail Removed)...
> How can one determine the DOS 8.3 name of a Word 2000
> file? We are using the ISYS 5 search program, which
> indexes files based on the DOS file name. When we
> encounter problems with a file, we can't determine which
> file is causing the problem because we don't know how to
> reconcile between the 8.3 name and the long name we use.
>
> We would certainly appreciate any help! Thanks.



 
Reply With Quote
 
Phil Robyn
Guest
Posts: n/a
 
      21st Jan 2004
Sue Parkhurst wrote:

> How can one determine the DOS 8.3 name of a Word 2000
> file? We are using the ISYS 5 search program, which
> indexes files based on the DOS file name. When we
> encounter problems with a file, we can't determine which
> file is causing the problem because we don't know how to
> reconcile between the 8.3 name and the long name we use.
>
> We would certainly appreciate any help! Thanks.


C:\cmd>rlist demo\ShowShortFileName.cmd
=====begin C:\cmd\demo\ShowShortFileName.cmd ====================
01. @echo off
02. setlocal
03. if [%2] neq [] (set LFN=%*) else (set LFN=%~1)
04. if defined LFN goto :TEST
05. set /p LFN="Type in the LONG name of the file: "
06. if not defined LFN goto :EOF
07. :TEST
08. if exist "%LFN%" goto :FOUND
09. echo/File "%LFN%" does not exist.&goto :EOF
10. :FOUND
11. for %%a in ("%LFN%") do @echo/The DOS (Short) name is %%~sfa
=====end C:\cmd\demo\ShowShortFileName.cmd ====================

C:\cmd>c:\cmd\demo\ShowShortFileName.cmd %temp%\the quick brown fox.txt
The DOS (Short) name is c:\Temp\THEQUI~1.TXT

C:\cmd>c:\cmd\demo\ShowShortFileName.cmd
Type in the LONG name of the file: c:\temp\the quick brown fox.doc
File "c:\temp\the quick brown fox.doc" does not exist.

C:\cmd>c:\cmd\demo\ShowShortFileName.cmd c:\cmd\demo\ShowShortFileName.cmd
The DOS (Short) name is c:\cmd\demo\SHOWSH~1.CMD

C:\cmd>c:\cmd\demo\ShowShortFileName.cmd
Type in the LONG name of the file: C:\Program Files\InstallShield Installation Information\{5CD29180-A95E-11D3-A4EB-00C04F7BDB2C}\Setup.ini

The DOS (Short) name is C:\PROGRA~1\INSTAL~1\{5CD29~1\Setup.ini

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

 
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
Determining the full path and filename of an active workbook =?Utf-8?B?QWFyb24gRHljaw==?= Microsoft Excel Programming 1 31st Aug 2006 03:20 AM
Determining SP level of Exchange 2000 =?Utf-8?B?SmltIGluIENsZXZlbGFuZA==?= Microsoft Outlook Discussion 2 5th Jul 2006 06:57 PM
Cannot Create File "filename.htm" in Frontpage 2000 cscottm@gmail.com Microsoft Frontpage 1 11th Jul 2005 10:22 AM
Default File Path in Workbooks.Open(FileName:="Filename") =?Utf-8?B?RGVubmlz?= Microsoft Excel Misc 1 18th Oct 2004 04:53 PM
saving file with new filename based on current filename Michael J. Malinsky Microsoft Excel Programming 5 18th Mar 2004 12:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 AM.