Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR issues - short vs longname
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01343768
Message ID:
01343861
Vues:
16
Thanks for your help, but I must be dense. I don't understand, how does this help me?

I am trying to get the short name for the file. Once I have the name, I will am using it to copy the long file name to the short file name. This file with the short file name is what gets placed on the server.


>You can use GetShortPathName
>
>Re: SET PATH and embedded commas Thread #929476 Message #929638
>
>>I have a small application that converts word documents to htm files. They are placed on a win 2000 server that has win 3.11 machines connected to it. Therefore to make sure that I can read all of the htm files, I use the short name of the file as the link, copying the longname to the shortname and then link it.

>>It seems that the short names do not link to the long names properly...
>>
>>Code below
>>
>>	nDocs=ADIR(longnames,"*.doc","",1)
>>	=ADIR(shortnames,"*.doc","",2)
>>	DIMENSION ProdLinks[ALEN(shortnames,1),2]
>>	FOR y=1 TO ALEN(ShortNames,1)
>>		ProdLinks[y,1]=JUSTSTEM(ShortNames[y,1])
>>		ProdLinks[y,2]=JUSTSTEM(LongNames[y,1])
>>	ENDFOR
>>
>>The issue is that the shortnames do not match... the ones got via dir -x
<snip>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform