Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 17 AUG 2003 10:28:35PM ps wing wrote:

Hello,

I searched, but could not find the answer to this one:

I have a folder with filenames like NZ.aaa.bbbb.cccc.ddddd

But INITDIR NZ*.* and DIRLIST returns only some of them.

Any ideas?

Phil


At 18 AUG 2003 07:00AM Don Miller - C3 Inc. wrote:

I don't think those filenames conform to the DOS 8/3 name specification that REV-G understands. Windows will let you make any name you like, but getting to them in REV-G will be problematic if they don't strictly conform to the older naming convention.

Don M.


At 18 AUG 2003 10:17AM Victor Engel wrote:

I suggest rolling your own utility to parse a directory listing to make long to short names. How the listing is parsed will depend upon the OS that is being run. For example, the /X switch may be available to the DIR command to get the long file name. Or it may appear by default.

In any case, just shell the output of the appropriate DIR command to a file and then parse the file.


At 19 AUG 2003 05:43PM Steve Smith wrote:

Paul - I have routines for this somewhere. Hopefully I can locate them for you. Email me.

Steve


At 20 AUG 2003 12:18AM ps wing wrote:

Opps, was meant to post this to Arev not RevG.

Still got some good info though, thanks.

I used PCPERFORM "CMD.EXE /C DIR path /X /ON ] DIR.TXT" to sort the short name by the long then a OSREAD to get the short names.

Still might Email you Steve, as there may be a better way, thanks.

Phil

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/bf2eaee8282f34ab85256d86000d9a72.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1