Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIR command and long names of files

Status
Not open for further replies.

stesvet1

Technical User
Sep 23, 2006
22
FPW2.6a on WIN XP or 2000NT

a) If I write into command line (FAR, Windows,..., any file manager): dir c:\*.ppt /s /a >dirinfo.doc, I obtain output information with long names of all *.ppt files =>
***** RESULT***************
23.08.2002 16:53 65?536 poster_zuerich.ppt
22.03.2006 21:00 69?120 Overcost of Renault-Flins' water-borne basecoat project compared to solvent-borne basecoat in euros by kg of VOC wo.ppt
********************

b)but if I write the same command in FPW2.6:
Run /0 dir e:\*.ppt /s /a >dirinfo.doc,then output information is both not same and in some version Win is number of all filles shorter (the best results were on Win 95)
***** RESULT***************
POSTER~1 PPT 65536 23.08.02 16.53
OVERCO~1 PPT 69120 22.03.06 21.00
********************

c) is there any possiblity to use C - language with API?

Note1: I am not programmer but FPW2.6 hobby maker (I am using it mostly as html generator) and I would like to start with foxtool.dll and so on (I do not understand exampes from distribution kit manuals book yet - I must learnig it).

Note2:
I solved it partly by using of combination of executing of *.BAT-file (wit DIR the command) followed with RUN /N commmad, which starts Browser (Opera, IE6, Mozilla).

I was very suprised, because RUN /N command is much more faster as previous BAT-command and result was: it worked with long file names but I had to once more start the PRG!

Therefore I made absichtlich an error command, that ask me now Cancel-Resume-Ignore? Then I choose simply Ignore and RUN /N command is then not faster, i.e. result is very good (but I must allways click on Ignore).
 
Steve, if you are just a hobbiest, I recommend getting ahold of a copy of VFP instead. It was created after long file names, and this is no issue. If you are doing everything in code, and using as a generator, all this should work fine in VFP.


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Thanks,

but at the time I need'nt VFP. I do not know object programming. In the year 1998 the computers were not enough quick, RAM and disk space were low, etc. Now, with progress of ICT also FPW2.6 enables completely new approaches and applications. I am using FPW2.6, e.g. as text editor, off-line engine, e-learning generator, etc.

To change on VFP needs for me mutch, mutch time, including money for software and there is no reason for me to change on VFP. If I have time I will learn PHP and SQL databases.

Best regard
Steven

P.S:: FPW2.6 make also long names of files. But I kow just DOS-command DIR and that is not compatiple enough with WIN XP. If I had, e.g. very short exe-file made with any common language, which makes LISTING OF ALL FILLES (with mask), then I would write RUN /N listng.exe and had any problem (listing.exe woul be written maybe in Delfi,..)









 

Steve,

P.S:: FPW2.6 make also long names of files. But I kow just DOS-command DIR and that is not compatiple enough with WIN XP. If I had, e.g. very short exe-file made with any common language, which makes LISTING OF ALL FILLES (with mask), then I would write RUN /N listng.exe and had any problem (listing.exe woul be written maybe in Delfi,..)

Did you try ADIR() function in FoxPro?
It will create a list of files (using you mask/skeleton) for you and put them into an array. Check out the Help file for syntax/format/examples and other details on this function.


 
You might try FoxLFN. You can google it and find the website. Haven't used it myself so I can't comment on it.

"Life Is Good!
 
If you use Cmd.exe (black icon) rather than Command.com (colorful MS-DOS icon) then try this command which displays the short name then the long name:

DIR /X

dbMark
 
I just tested both Cmd and Command and both support the /X switch for the DIR command in XP computers. I'm not sure about earlier Windows versions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top