Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH and Subfolders of Subfolders
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00224547
Message ID:
00224781
Vues:
25
>>
>>Thanks for the help, Ken. My brain always wants to start spinning when dealing with recursion... In some silly way I was hoping there was a magical switch or parameter I could use to avoid it! :-)
>>
>>Thanks again,
>
>
>Why not just use good ole command.com or nt's cmd to do this. I wrote a simple program that does just this using nothing but vfp and dos, and actually uses the latest command line version of pkzip to zip selected files. If you want it, I'll see if I can dig it up.

Hi John,

How's things? (Haven't talked to you since we discussed Word automation a good six months ago!)

I was using DOS commands in NT (NET USE, etc) and redirecting a DIR listing to a text file, then parsing that for each resource I needed a listing for. (ADIR has never been able to get it done like I needed it.) However, I started using the API to map to each drive (I have to connect to 28 different users and get a file list) and I am looking for a faster way of getting the DIR listing. Redirecting the DIR command to a file, then adding that txt file to a table then parsing it to weed out unneeded info has been working fine, just taking too long. (Each user is a design engineer with literally thousands of CAD drawings I have to mill thru.)

So far I've been able to improve speed a little using WSH and pouring the results of what I'm doing into a table, but I really wish ADIR() worked as advertised. (I've NEVER been able to get info contained more than one subfolder deep, even when using the D switch with ADIR().)

Glad you wrote, I've been meaning to stop by your page... Haven't been there in awhile and there's always some good info to be had there!

Take care,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform